2023-01-31 15:54:14 +00:00
|
|
|
FROM node:16-bullseye
|
2021-05-31 19:06:40 +00:00
|
|
|
|
|
|
|
RUN mkdir /app/
|
|
|
|
WORKDIR /app/
|
2023-01-29 20:28:20 +00:00
|
|
|
RUN npm install pm2 -g
|
2023-01-31 15:54:14 +00:00
|
|
|
RUN apt update; apt install -y libstdc++6
|
2021-05-31 19:06:40 +00:00
|
|
|
|
|
|
|
COPY front-end/ /app/front-end/
|
|
|
|
WORKDIR /app/front-end/
|
|
|
|
RUN npm install
|
|
|
|
RUN npm run-script build
|
|
|
|
|
|
|
|
WORKDIR /app/
|
|
|
|
COPY package.json /app/
|
|
|
|
COPY package-lock.json /app/
|
|
|
|
RUN npm install
|
|
|
|
|
|
|
|
COPY server.js /app/
|
|
|
|
COPY probe.js /app/
|
|
|
|
COPY constants.js /app/
|
|
|
|
COPY notification.js /app/
|
|
|
|
COPY database.js /app/
|
|
|
|
COPY api.js /app/
|
|
|
|
COPY app.js /app/
|
|
|
|
COPY utils.js /app/
|
|
|
|
COPY docker-entrypoint.sh /app/
|
|
|
|
RUN chmod +x /app/docker-entrypoint.sh
|
|
|
|
COPY templates /app/templates
|
|
|
|
|
2023-01-29 20:28:20 +00:00
|
|
|
USER node
|
2021-05-31 19:06:40 +00:00
|
|
|
|
|
|
|
# Start the server
|
|
|
|
ENTRYPOINT ["/app/docker-entrypoint.sh"]
|