teddit/Dockerfile

16 lines
326 B
Docker
Raw Normal View History

2020-12-09 23:02:44 +01:00
# Use LTS Node.js base image
2021-04-05 12:09:48 +02:00
FROM node:14.16-alpine
2020-12-09 23:02:44 +01:00
# Video support dependency
RUN apk add ffmpeg
2020-12-09 23:02:44 +01:00
# Install NPM dependencies and copy the project
WORKDIR /teddit
2020-12-09 23:02:44 +01:00
COPY . /teddit/
RUN npm install --no-optional
COPY config.js.template /teddit/config.js
RUN find /teddit/static/ -type d -exec chmod -R 777 {} \;
CMD npm start