actual-server/Dockerfile
2022-04-29 10:35:13 -04:00

17 lines
No EOL
332 B
Docker

# base node image
FROM node:16-bullseye-slim as base
RUN apt-get update && apt-get install -y openssl
RUN mkdir /app
WORKDIR /app
ENV NODE_ENV=production
ADD . .
RUN yarn install --production
RUN mkdir ./server-files
RUN mkdir ./user-files
RUN cp ./sql/default-account.sqlite ./server-files/account.sqlite
CMD ["yarn", "start"]