Compare commits

..

3 Commits

Author SHA1 Message Date
cd55f1641c
Fix Alpine build 2024-10-28 21:18:43 -07:00
Juansecu
bc8882d2e8
BUILD - Expose ports used by the application server in Dockerfile 2024-10-28 21:02:52 -07:00
Juansecu
359de79eaa
BUILD - Optimize Dockerfile by using alpine as base image 2024-10-28 21:02:35 -07:00

View File

@ -23,6 +23,10 @@ RUN make nosandbox -j$(nproc)
# prod # prod
FROM alpine:3 FROM alpine:3
ENV AUTHENTICATION_PORT 23000
ENV MONITORING_PORT 8003
ENV SHARDING_PORT 23001
WORKDIR /usr/src/app WORKDIR /usr/src/app
RUN apk update && apk upgrade && apk add \ RUN apk update && apk upgrade && apk add \
@ -32,6 +36,10 @@ sqlite-dev
COPY --from=build /usr/src/app/bin/fusion /bin/fusion COPY --from=build /usr/src/app/bin/fusion /bin/fusion
COPY sql ./sql COPY sql ./sql
EXPOSE $AUTHENTICATION_PORT
EXPOSE $MONITORING_PORT
EXPOSE $SHARDING_PORT
CMD ["/bin/fusion"] CMD ["/bin/fusion"]
EXPOSE 23000/tcp EXPOSE 23000/tcp