fix dockerfiles by using classic yarn

This commit is contained in:
wancat committed 2024-02-22 22:24:29 +08:00
1 parent 14eea84a36
commit 48cfcb2c36
8 files changed
+7389 -11297

No files matched your search

+4 -2
View File
@@ -1,7 +1,6 @@
# Base stage
FROM node:20-alpine as base
RUN yarn set version berry
WORKDIR /app
COPY package.json yarn.lock tsconfig.json ./
COPY packages/file-graph/package.json ./packages/file-graph/package.json
@@ -21,7 +20,10 @@ COPY packages/file-graph ./packages/file-graph
COPY packages/utils ./packages/utils
COPY packages/constants ./packages/constants
COPY app ./app
RUN yarn build
RUN yarn workspace @linux-odyssey/file-graph build
RUN yarn workspace @linux-odyssey/utils build
RUN yarn workspace @linux-odyssey/constants build
RUN yarn workspace app build
# Production stage
FROM nginx:stable-alpine as prod