mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2024-12-15 00:46:22 +00:00
25 lines
665 B
Docker
25 lines
665 B
Docker
|
FROM jrottenberg/ffmpeg:5-alpine as ffmpeg
|
||
|
|
||
|
FROM node:16-alpine
|
||
|
|
||
|
WORKDIR /usr/lolisafe
|
||
|
COPY package.json yarn.lock ./
|
||
|
|
||
|
RUN apk add --update \
|
||
|
&& apk add --no-cache ca-certificates expat \
|
||
|
&& apk add --no-cache vidstab-dev --repository=http://dl-cdn.alpinelinux.org/alpine/edge/community \
|
||
|
&& apk add --no-cache --virtual .build-deps git curl build-base python3 g++ make \
|
||
|
&& yarn install --production \
|
||
|
&& yarn cache clean \
|
||
|
&& apk del .build-deps
|
||
|
|
||
|
COPY --from=ffmpeg /usr/local /usr/local
|
||
|
|
||
|
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"]
|