mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-05 19:20:12 +08:00
fix dockerfiles by using classic yarn
This commit is contained in:
1 parent
14eea84a36
commit
48cfcb2c36
8 files changed
+7389
-11297
No files matched your search
+4
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user