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
|
2021-04-07 06:10:06 +02:00
|
|
|
COPY . ./
|
2020-12-07 20:57:20 +01:00
|
|
|
RUN npm install --no-optional
|
2021-04-07 06:10:06 +02:00
|
|
|
COPY config.js.template ./config.js
|
2020-12-07 20:57:20 +01:00
|
|
|
|
2021-04-07 06:10:06 +02:00
|
|
|
RUN find ./static/ -type d -exec chmod -R 777 {} \;
|
2021-04-05 17:59:02 +02:00
|
|
|
|
2020-12-07 20:57:20 +01:00
|
|
|
CMD npm start
|