filesafe/docker/lolisafe/Dockerfile
Bobby 6b0bb0a01f
fix: docker configuration
use debian bullseye image instead of alpine linux

uWS.js does not work on alpine linux, unfortunately
2022-10-08 15:30:02 +07:00

19 lines
389 B
Docker

FROM node:18-bullseye
WORKDIR /usr/lolisafe
COPY package.json yarn.lock ./
RUN apt update &&\
apt install -y python python3 make g++ git ffmpeg && \
yarn install --production && \
yarn cache clean && \
apt clean
ADD config.sample.js config.js
ADD views/_globals.sample.njk views/_globals.njk
COPY . .
RUN mkdir uploads && mkdir database
CMD ["sh", "-c", "yarn migrate && yarn start"]