mirror of
https://github.com/trufflesecurity/xsshunter
synced 2024-11-24 05:13:04 +00:00
parent
b1b48104e1
commit
2d197223cf
2 changed files with 3 additions and 2 deletions
|
@ -2,6 +2,7 @@ FROM node:16
|
|||
|
||||
RUN mkdir /app/
|
||||
WORKDIR /app/
|
||||
RUN npm install pm2 -g
|
||||
|
||||
COPY front-end/ /app/front-end/
|
||||
WORKDIR /app/front-end/
|
||||
|
@ -25,7 +26,7 @@ COPY docker-entrypoint.sh /app/
|
|||
RUN chmod +x /app/docker-entrypoint.sh
|
||||
COPY templates /app/templates
|
||||
|
||||
USER 1111
|
||||
USER node
|
||||
|
||||
# Start the server
|
||||
ENTRYPOINT ["/app/docker-entrypoint.sh"]
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
echo "Starting server..."
|
||||
node server.js
|
||||
pm2-runtime server.js
|
||||
|
|
Loading…
Reference in a new issue