Files
teddit/Dockerfile
Austin Huang c97fb5a517 Use slim node image instead of alpine
Signed-off-by: Austin Huang <im@austinhuang.me>
2022-01-26 11:49:47 -05:00

16 lines
327 B
Docker

# Use LTS Node.js slim image
FROM node:14.17-slim
# Video support dependency
RUN apt update && apt install -y ffmpeg
# Install NPM dependencies and copy the project
WORKDIR /teddit
COPY . ./
RUN npm install --no-optional
COPY config.js.template ./config.js
RUN find ./static/ -type d -exec chmod -R 777 {} \;
CMD npm start