mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2024-12-15 00:46:22 +00:00
6b0bb0a01f
use debian bullseye image instead of alpine linux uWS.js does not work on alpine linux, unfortunately
19 lines
389 B
Docker
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"]
|