Start nginx service on container boot
This commit is contained in:
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user