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

18 lines
347 B
Docker

# Use LTS Node.js slim image
FROM node:slim
# Video support dependency
RUN apt-get update && apt-get install -y ffmpeg wget
# 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 {} \;
EXPOSE 8080
CMD npm start