mirror of
https://github.com/KevinMidboe/seasoned.git
synced 2026-03-11 11:55:38 +00:00
Nginx install and simple config
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
|
||||
RUN apk update && apk add curl && apt add nginx
|
||||
|
||||
RUN mkdir -p /opt/seasoned/node_modules
|
||||
WORKDIR /opt/seasoned
|
||||
@@ -12,6 +12,7 @@ COPY yarn.lock /opt/seasoned
|
||||
COPY package.json /opt/seasoned
|
||||
COPY server.ts /opt/seasoned
|
||||
COPY webpack.config.js /opt/seasoned
|
||||
COPY nginx.conf /etc/nginx/http.d/default.conf
|
||||
COPY tsconfig**.json /opt/seasoned/
|
||||
|
||||
RUN chown -R node:node /opt/seasoned
|
||||
@@ -22,6 +23,6 @@ RUN yarn install
|
||||
|
||||
RUN yarn build
|
||||
|
||||
EXPOSE 5001
|
||||
EXPOSE 5000
|
||||
|
||||
CMD ["yarn", "start"]
|
||||
|
||||
Reference in New Issue
Block a user