From bc8882d2e83f71e0b0950cf15df856091fc7cc1d Mon Sep 17 00:00:00 2001 From: Juansecu <43616657+Juansecu@users.noreply.github.com> Date: Wed, 9 Oct 2024 19:13:54 -0500 Subject: [PATCH] BUILD - Expose ports used by the application server in Dockerfile --- Dockerfile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Dockerfile b/Dockerfile index d9c358d..556d3f0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -23,6 +23,10 @@ RUN make nosandbox -j$(nproc) # prod FROM alpine:3 +ENV AUTHENTICATION_PORT 23000 +ENV MONITORING_PORT 8003 +ENV SHARDING_PORT 23001 + WORKDIR /usr/src/app RUN apk update && apk upgrade && apk add \ @@ -32,6 +36,10 @@ sqlite-dev COPY --from=build /usr/src/app/bin/fusion /bin/fusion COPY sql ./sql +EXPOSE $AUTHENTICATION_PORT +EXPOSE $MONITORING_PORT +EXPOSE $SHARDING_PORT + CMD ["/bin/fusion"] EXPOSE 23000/tcp