Reduce COPYs

This commit is contained in:
amrw 2020-12-09 23:02:44 +01:00
parent a8b3f8854b
commit ef683d0687
No known key found for this signature in database
GPG Key ID: BDE4B0FDD8FA1C85

View File

@ -1,15 +1,13 @@
# Use LTS nodejs base image
# Use LTS Node.js base image
FROM node:14.15.1-alpine
# video support dependency
# Video support dependency
RUN apk add ffmpeg
# install npm dependencies and copy project
# Install NPM dependencies and copy the project
WORKDIR /teddit
COPY package.json /teddit/
COPY package-lock.json /teddit/
COPY . /teddit/
RUN npm install --no-optional
COPY config.js.template /teddit/config.js
COPY . /teddit/
CMD npm start