made the docker image lighter and changed the video codec

This commit is contained in:
Quentin Roussel
2024-08-18 20:01:52 +08:00
parent 107f2154e5
commit 84ee2eb724
3 changed files with 6 additions and 3 deletions

View File

@@ -1,9 +1,9 @@
FROM node:18
FROM node:18-alpine
# Set TZ to Singapore to help with syncronizing with singapore's website time
ENV TZ="Asia/Singapore"
RUN apt-get update && apt-get install -y ffmpeg && apt-get clean
RUN apk update && apk add --no-cache ffmpeg npm pango-dev g++ make jpeg-dev giflib-dev librsvg-dev
RUN mkdir -p /home/node/app/node_modules
RUN mkdir -p /home/node/app/images/raw