mirror of
https://github.com/darkwire/darkwire.io.git
synced 2025-07-23 04:56:01 +00:00
19 lines
291 B
Docker
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"] |