mirror of
https://codeberg.org/tacerus/teddit.git
synced 2024-11-22 14:59:26 +01:00
Reduce COPY
s
This commit is contained in:
parent
a8b3f8854b
commit
ef683d0687
10
Dockerfile
10
Dockerfile
@ -1,15 +1,13 @@
|
|||||||
# Use LTS nodejs base image
|
# Use LTS Node.js base image
|
||||||
FROM node:14.15.1-alpine
|
FROM node:14.15.1-alpine
|
||||||
|
|
||||||
# video support dependency
|
# Video support dependency
|
||||||
RUN apk add ffmpeg
|
RUN apk add ffmpeg
|
||||||
|
|
||||||
# install npm dependencies and copy project
|
# Install NPM dependencies and copy the project
|
||||||
WORKDIR /teddit
|
WORKDIR /teddit
|
||||||
COPY package.json /teddit/
|
COPY . /teddit/
|
||||||
COPY package-lock.json /teddit/
|
|
||||||
RUN npm install --no-optional
|
RUN npm install --no-optional
|
||||||
COPY config.js.template /teddit/config.js
|
COPY config.js.template /teddit/config.js
|
||||||
COPY . /teddit/
|
|
||||||
|
|
||||||
CMD npm start
|
CMD npm start
|
||||||
|
Loading…
Reference in New Issue
Block a user