teddit/Dockerfile
3np f0b2204e72 Set global write permissions on upload directories
To play nicely with tmpfs mounts
2021-04-06 03:25:34 +09:00

16 lines
326 B
Docker

# Use LTS Node.js base image
FROM node:14.16-alpine
# Video support dependency
RUN apk add ffmpeg
# Install NPM dependencies and copy the project
WORKDIR /teddit
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