mirror of
https://git.roussel.pro/public-website/singapore_rain_radar.git
synced 2026-02-09 02:20:17 +01:00
added possibility to download latest images
This commit is contained in:
20
Dockerfile
Normal file
20
Dockerfile
Normal 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" ]
|
||||
Reference in New Issue
Block a user