From 9cf2bb9bd89e3a0e88c6df0f158c75e403d04bad Mon Sep 17 00:00:00 2001 From: Kevin Midboe Date: Sun, 14 Aug 2022 00:51:43 +0200 Subject: [PATCH] Start nginx service on container boot --- Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 1c60885..2b5be91 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"]