Skip to content

Commit 4fc2ad7

Browse files
committed
Advertise open ports (to traefik) via EXPOSE directive
1 parent 13688c4 commit 4fc2ad7

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/server/Dockerfile

+2-1
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,5 @@ ENV DOTNET_USE_POLLING_FILE_WATCHER true
2222
ENV NUGET_XMLDOC_MODE skip
2323

2424
WORKDIR /app/API
25-
CMD [ "dotnet", "run" ]
25+
EXPOSE 5001
26+
CMD [ "dotnet", "run" ]

src/ui-client/Dockerfile

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ ENV PATH /app/node_modules/.bin:$PATH
99
COPY . /app
1010
RUN npm install
1111

12+
EXPOSE 3000
1213
CMD [ "npm", "start" ]
1314

1415
#COPY build /app/build
@@ -18,4 +19,4 @@ CMD [ "npm", "start" ]
1819
#EXPOSE 8080
1920
#COPY --from=build-step /app/build /usr/share/nginx/html
2021
#COPY --from=build-step /app/nginx.conf /etc/nginx/conf.d/default.conf
21-
#CMD [ "nginx", "-g", "daemon off;" ]
22+
#CMD [ "nginx", "-g", "daemon off;" ]

0 commit comments

Comments
 (0)