fix: build process with monorepo

This commit is contained in:
Rafael Taranto 2025-05-12 11:18:10 +01:00
parent 9c098d2fb9
commit d31057792e
2 changed files with 4 additions and 4 deletions

View file

@ -1,7 +1,7 @@
FROM node:22-alpine AS build-ui
RUN apk add --no-cache npm git curl build-base python3
COPY ["packages/admin-ui/package.json", "packages/admin-ui/package-lock.json", "./"]
COPY ["packages/admin-ui/package.json", "package-lock.json", "./"]
RUN npm version --allow-same-version --git-tag-version false --commit-hooks false 1.0.0
RUN npm install
@ -31,7 +31,7 @@ RUN apt-get install nodejs -y -q
WORKDIR lamassu-server
COPY ["packages/server/package.json", "packages/server/package-lock.json", "./"]
COPY ["packages/server/package.json", "package-lock.json", "./"]
RUN npm version --allow-same-version --git-tag-version false --commit-hooks false 1.0.0
RUN npm install --production

View file

@ -3,7 +3,7 @@ RUN apk add --no-cache npm git curl build-base net-tools python3 postgresql-dev
WORKDIR /lamassu-server
COPY ["packages/server/package.json", "packages/server/package-lock.json", "./"]
COPY ["packages/server/package.json", "package-lock.json", "./"]
RUN npm version --allow-same-version --git-tag-version false --commit-hooks false 1.0.0
RUN npm install --production
@ -30,7 +30,7 @@ RUN apk add --no-cache npm git curl build-base python3
WORKDIR /app
COPY ["packages/admin-ui/package.json", "packages/admin-ui/package-lock.json", "./"]
COPY ["packages/admin-ui/package.json", "package-lock.json", "./"]
RUN npm version --allow-same-version --git-tag-version false --commit-hooks false 1.0.0
RUN npm install