actual-server/Dockerfile

17 lines
262 B
Docker
Raw Normal View History

2022-04-29 02:09:40 +00:00
# base node image
FROM node:16-bullseye as base
2022-04-29 02:09:40 +00:00
RUN apt-get update && apt-get install -y openssl
RUN mkdir /app
WORKDIR /app
ENV NODE_ENV=production
ADD . .
2022-04-29 02:40:13 +00:00
RUN yarn install --production
2022-04-29 14:35:13 +00:00
RUN mkdir ./server-files
RUN mkdir ./user-files
2022-04-29 02:40:13 +00:00
CMD ["yarn", "start"]