mirror of
https://github.com/trufflesecurity/xsshunter
synced 2024-11-10 06:44:13 +00:00
2d197223cf
* add supervisor * fix perms
32 lines
594 B
Docker
32 lines
594 B
Docker
FROM node:16
|
|
|
|
RUN mkdir /app/
|
|
WORKDIR /app/
|
|
RUN npm install pm2 -g
|
|
|
|
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
|
|
|
|
USER node
|
|
|
|
# Start the server
|
|
ENTRYPOINT ["/app/docker-entrypoint.sh"]
|