teddit/Dockerfile

16 lines
308 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
2021-04-07 06:10:06 +02:00
COPY . ./
RUN npm install --no-optional
2021-04-07 06:10:06 +02:00
COPY config.js.template ./config.js
2021-04-07 06:10:06 +02:00
RUN find ./static/ -type d -exec chmod -R 777 {} \;
CMD npm start