mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2024-11-24 14:01:05 +00:00
BUILD - Expose ports used by the application server in Dockerfile
This commit is contained in:
parent
359de79eaa
commit
bc8882d2e8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user