update Dockerfile
This commit is contained in:
parent
1339a04011
commit
5d1e88d509
15
Dockerfile
15
Dockerfile
@ -1,11 +1,16 @@
|
|||||||
FROM node:19-alpine
|
FROM node:19-alpine
|
||||||
|
|
||||||
ENV STORAGE=/app/storage
|
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN yarn install
|
RUN yarn install && yarn build && rm -rf node_modules
|
||||||
RUN yarn build
|
|
||||||
|
|
||||||
CMD yarn start
|
FROM node:19-alpine
|
||||||
|
|
||||||
|
ENV STORAGE=/app/storage
|
||||||
|
|
||||||
|
COPY --from=stage0 /app /app
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
CMD yarn start
|
Loading…
x
Reference in New Issue
Block a user