2022-01-26 17:47:08 +01:00
|
|
|
# Use LTS Node.js slim image
|
2023-04-25 21:58:20 +02:00
|
|
|
FROM node:slim
|
2020-12-07 20:57:20 +01:00
|
|
|
|
2020-12-09 23:02:44 +01:00
|
|
|
# Video support dependency
|
2022-02-08 18:52:25 +01:00
|
|
|
RUN apt-get update && apt-get install -y ffmpeg wget
|
2020-12-07 20:57:20 +01:00
|
|
|
|
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
|
|
|
|
2022-12-27 03:07:31 +01:00
|
|
|
EXPOSE 8080
|
|
|
|
|
2020-12-07 20:57:20 +01:00
|
|
|
CMD npm start
|