darkwire.io/Dockerfile
2023-10-30 04:02:28 -05:00

19 lines
291 B
Docker

#FROM nginx:alpine3.18
FROM node:20.9.0-alpine3.18
RUN apk update && apk add --no-cache bash
USER node:node
WORKDIR /home/node
COPY --chown=node:node . .
RUN yarn && yarn build
STOPSIGNAL SIGINT
RUN chmod +x /home/node/start.sh
# Start the startup script
CMD ["/home/node/start.sh"]