Do not expose port 443 in internal dockerfile.
It is no longer needed, since all HTTPS traffic will be handled by the Nginx service on the server hosting the docker containers.
This commit is contained in:
parent
97eedf1345
commit
266653b48b
@ -1,5 +1,5 @@
|
||||
# stage 1 - build react and elm apps first
|
||||
FROM node:20.5.1-alpine as build
|
||||
FROM node:20.5.1-alpine AS build
|
||||
|
||||
RUN apk update &&\
|
||||
apk --no-cache add curl &&\
|
||||
@ -10,7 +10,7 @@ RUN apk update &&\
|
||||
apk del curl
|
||||
|
||||
WORKDIR /app
|
||||
ENV PATH /app/node_modules/.bin:$PATH
|
||||
ENV PATH=/app/node_modules/.bin:$PATH
|
||||
COPY ./package.json /app/
|
||||
RUN npm install
|
||||
COPY . /app
|
||||
@ -25,5 +25,5 @@ COPY --from=build /app/src/michelaben /usr/share/nginx/html/michelaben
|
||||
RUN rm /etc/nginx/conf.d/default.conf
|
||||
COPY config/nginx/nginx.conf /etc/nginx/conf.d
|
||||
EXPOSE 80
|
||||
EXPOSE 443
|
||||
#EXPOSE 443
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user