2020-12-09 23:02:44 +01:00
|
|
|
# Use LTS Node.js base image
|
2021-04-05 12:09:48 +02:00
|
|
|
FROM node:14.16-alpine
|
2020-12-07 20:57:20 +01:00
|
|
|
|
2020-12-09 23:02:44 +01:00
|
|
|
# Video support dependency
|
2020-12-07 20:57:20 +01:00
|
|
|
RUN apk add ffmpeg
|
|
|
|
|
2020-12-09 23:02:44 +01:00
|
|
|
# Install NPM dependencies and copy the project
|
2020-12-07 20:57:20 +01:00
|
|
|
WORKDIR /teddit
|
2020-12-09 23:02:44 +01:00
|
|
|
COPY . /teddit/
|
2020-12-07 20:57:20 +01:00
|
|
|
RUN npm install --no-optional
|
|
|
|
COPY config.js.template /teddit/config.js
|
|
|
|
|
|
|
|
CMD npm start
|