Start nginx service on container boot

This commit is contained in:
2022-08-14 00:51:43 +02:00
parent 6ceb7861de
commit 9cf2bb9bd8

View File

@@ -1,7 +1,7 @@
FROM node:18-alpine3.15
LABEL org.opencontainers.image.source https://github.com/kevinmidboe/seasoned
RUN apk update && apk add curl && apk add nginx
RUN apk update && apk add curl && apk add nginx && apk add openrc
RUN mkdir -p /opt/seasoned/node_modules
WORKDIR /opt/seasoned
@@ -23,6 +23,9 @@ RUN yarn install
RUN yarn build
RUN rc-update add nginx
RUN rc-service nginx start
EXPOSE 5000
CMD ["yarn", "start"]