Dockerfile with working healthcheck endpoint
This commit is contained in:
parent
e2a8f446bb
commit
fee56c6042
@ -1,20 +1,15 @@
|
||||
FROM fedora:32
|
||||
|
||||
# Build and setup app
|
||||
RUN dnf install g++ enet-devel gtest gmock gmock-devel gtest-devel -y
|
||||
RUN dnf install g++ enet-devel gtest gmock gmock-devel gtest-devel nginx -y
|
||||
|
||||
ADD / /dt
|
||||
|
||||
RUN cd /dt; /dt/build.sh
|
||||
|
||||
CMD ["/dt/builds/server.out"]
|
||||
RUN echo "Container is healthy!" > /usr/share/nginx/html/index.html
|
||||
|
||||
# Setup status endpoint
|
||||
RUN dnf install nginx -y
|
||||
CMD /usr/sbin/nginx ; /dt/builds/server.out
|
||||
|
||||
COPY nginx.conf /etc/nginx/conf.d/nginx.conf
|
||||
|
||||
RUN systemctl enable nginx.service
|
||||
|
||||
EXPOSE 80/tcp
|
||||
EXPOSE 80
|
||||
EXPOSE 7777/udp
|
Reference in New Issue
Block a user