Skip to content

Commit 352fa8a

Browse files
committed
BUILD - Expose ports used by the application server in Dockerfile
1 parent 2096c3c commit 352fa8a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Dockerfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ RUN make -j8
2323
# prod
2424
FROM alpine:3
2525

26+
ENV AUTHENTICATION_PORT 23000
27+
ENV MONITORING_PORT 8003
28+
ENV SHARDING_PORT 23001
29+
2630
WORKDIR /usr/src/app
2731

2832
RUN apk update && apk upgrade && apk add \
@@ -32,6 +36,10 @@ sqlite-dev
3236
COPY --from=build /usr/src/app/bin/fusion /bin/fusion
3337
COPY sql ./sql
3438

39+
EXPOSE $AUTHENTICATION_PORT
40+
EXPOSE $MONITORING_PORT
41+
EXPOSE $SHARDING_PORT
42+
3543
CMD ["/bin/fusion"]
3644

3745
LABEL Name=openfusion Version=0.0.2

0 commit comments

Comments
 (0)