teddit-reddit-frontend-alte.../Dockerfile

16 lines
335 B
Docker
Raw Normal View History

# Use LTS Node.js slim image
FROM node:14.17-slim
2020-12-09 23:02:44 +01:00
# Video support dependency
2022-01-29 14:53:45 +01:00
RUN apt-get update && apt-get install -y 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