added possibility to download latest images

This commit is contained in:
Quentin Roussel
2024-08-18 00:57:29 +08:00
commit ab1d1669a6
6 changed files with 106 additions and 0 deletions

20
Dockerfile Normal file
View File

@@ -0,0 +1,20 @@
FROM node:18
# 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 mkdir -p /home/node/app/node_modules && chown -R node:node /home/node/app
WORKDIR /home/node/app
COPY package*.json ./
USER node
RUN npm install
COPY --chown=node:node . .
CMD [ "npm", "start" ]