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

+5 -3
View File
@@ -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" ]