2022-01-27 01:47:08 +09:00
|
|
|
# Use LTS Node.js slim image
|
2023-04-26 04:58:20 +09:00
|
|
|
FROM node:slim
|
2020-12-08 04:57:20 +09:00
|
|
|
|
2020-12-10 07:02:44 +09:00
|
|
|
# Video support dependency
|
2022-02-09 02:52:25 +09:00
|
|
|
RUN apt-get update && apt-get install -y ffmpeg wget
|
2020-12-08 04:57:20 +09:00
|
|
|
|
2020-12-10 07:02:44 +09:00
|
|
|
# Install NPM dependencies and copy the project
|
2020-12-08 04:57:20 +09:00
|
|
|
WORKDIR /teddit
|
2021-04-07 13:10:06 +09:00
|
|
|
COPY . ./
|
2020-12-08 04:57:20 +09:00
|
|
|
RUN npm install --no-optional
|
2021-04-07 13:10:06 +09:00
|
|
|
COPY config.js.template ./config.js
|
2020-12-08 04:57:20 +09:00
|
|
|
|
2021-04-07 13:10:06 +09:00
|
|
|
RUN find ./static/ -type d -exec chmod -R 777 {} \;
|
2021-04-06 00:59:02 +09:00
|
|
|
|
2022-12-27 11:07:31 +09:00
|
|
|
EXPOSE 8080
|
|
|
|
|
2020-12-08 04:57:20 +09:00
|
|
|
CMD npm start
|