Skip to content

Commit

Permalink
BUILD - Expose ports used by the application server in Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Juansecu committed Oct 10, 2024
1 parent 2096c3c commit 352fa8a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ RUN make -j8
# 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 \
Expand All @@ -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"]

LABEL Name=openfusion Version=0.0.2

0 comments on commit 352fa8a

Please sign in to comment.