Added basic docker support.

This commit is contained in:
Tom
2024-12-06 06:57:10 +00:00
parent 0dcbd0ad2e
commit 748d9de02a
6 changed files with 46 additions and 5 deletions

17
Dockerfile Normal file
View File

@@ -0,0 +1,17 @@
FROM node:18.19.0
ENV APP_DIR=/app
ENV CONFIG_DIR=/config
ENV LOGS_DIR=/logs
ENV WEB_PORT=9011
RUN mkdir -p ${APP_DIR}/node_modules
WORKDIR ${APP_DIR}
COPY package*.json ./
RUN npm install
COPY . .
EXPOSE ${WEB_PORT}
CMD [ "node", "app.js" ]