mirror of
https://git.roussel.pro/public-website/singapore_rain_radar.git
synced 2026-02-09 02:20:17 +01:00
24 lines
500 B
Docker
24 lines
500 B
Docker
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
|
|
RUN mkdir -p /home/node/app/images/raw
|
|
RUN mkdir -p /home/node/app/images/final
|
|
RUN mkdir -p /home/node/app/out
|
|
RUN 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" ] |