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
+5
-3
@@ -1,6 +1,5 @@
|
||||
FROM node:20-alpine AS build
|
||||
|
||||
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
|
||||
@@ -27,7 +26,10 @@ COPY server ./server
|
||||
COPY quests ./quests
|
||||
|
||||
ENV NODE_ENV=production
|
||||
RUN yarn build
|
||||
RUN yarn workspace @linux-odyssey/file-graph build
|
||||
RUN yarn workspace @linux-odyssey/utils build
|
||||
RUN yarn workspace @linux-odyssey/ build
|
||||
RUN yarn workspace server build
|
||||
WORKDIR /app/server
|
||||
CMD [ "yarn", "start" ]
|
||||
|
||||
@@ -39,4 +41,4 @@ COPY server/nodemon.json ./server/nodemon.json
|
||||
COPY tsconfig.json ./tsconfig.json
|
||||
COPY server/tsconfig.json ./server/tsconfig.json
|
||||
ENV NODE_ENV=development
|
||||
CMD [ "yarn", "server" ]
|
||||
CMD [ "yarn", "server" ]
|
||||
Reference in new issue
Block a user