Adjust Dockerfile to build successfully
This commit is contained in:
parent
cd280802de
commit
933a5f5e7c
1 changed files with 2 additions and 5 deletions
|
@ -1,5 +1,5 @@
|
||||||
# base node image
|
# base node image
|
||||||
FROM node:16-bullseye-slim as base
|
FROM node:16-bullseye as base
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y openssl
|
RUN apt-get update && apt-get install -y openssl
|
||||||
|
|
||||||
|
@ -7,13 +7,10 @@ RUN mkdir /app
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
ENV NODE_ENV=production
|
ENV NODE_ENV=production
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
ADD . .
|
ADD . .
|
||||||
|
|
||||||
RUN yarn install --production
|
RUN yarn install --production
|
||||||
RUN mkdir ./server-files
|
RUN mkdir ./server-files
|
||||||
RUN mkdir ./user-files
|
RUN mkdir ./user-files
|
||||||
|
|
||||||
CMD ["yarn", "start"]
|
CMD ["yarn", "start"]
|
||||||
|
|
Loading…
Reference in a new issue