mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-06 03:20:13 +08:00
setup docker prod
This commit is contained in:
1 parent
ec4e97a7d6
commit
5b0d1f92c4
8 files changed
+1117
-1919
No files matched your search
+4
-2
@@ -1,12 +1,14 @@
|
||||
# Base stage
|
||||
FROM node:20-alpine as base
|
||||
|
||||
RUN yarn set version berry
|
||||
WORKDIR /app
|
||||
COPY package.json yarn.lock ./
|
||||
COPY package.json yarn.lock tsconfig.json ./
|
||||
COPY packages/file-graph/package.json ./packages/file-graph/package.json
|
||||
COPY packages/utils/package.json ./packages/utils/package.json
|
||||
COPY packages/constants/package.json ./packages/constants/package.json
|
||||
COPY app/package.json ./app/package.json
|
||||
RUN yarn install --frozen-lockfile
|
||||
RUN yarn install
|
||||
|
||||
# Dev stage
|
||||
FROM base as dev
|
||||
|
||||
Reference in new issue
Block a user