Adjust Dockerfile to build successfully

This commit is contained in:
Kovah 2022-04-29 18:37:53 +02:00
parent cd280802de
commit 933a5f5e7c
No known key found for this signature in database
GPG key ID: AAAA031BA9830D7B

View file

@ -1,5 +1,5 @@
# 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
@ -7,13 +7,10 @@ RUN mkdir /app
WORKDIR /app
ENV NODE_ENV=production
ADD . .
RUN yarn install --production
RUN mkdir ./server-files
RUN mkdir ./user-files
CMD ["yarn", "start"]
CMD ["yarn", "start"]