Dockerfile with working healthcheck endpoint
This commit is contained in:
parent
e2a8f446bb
commit
fee56c6042
@ -1,20 +1,15 @@
|
|||||||
FROM fedora:32
|
FROM fedora:32
|
||||||
|
|
||||||
# Build and setup app
|
# 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
|
ADD / /dt
|
||||||
|
|
||||||
RUN cd /dt; /dt/build.sh
|
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
|
CMD /usr/sbin/nginx ; /dt/builds/server.out
|
||||||
RUN dnf install nginx -y
|
|
||||||
|
|
||||||
COPY nginx.conf /etc/nginx/conf.d/nginx.conf
|
EXPOSE 80
|
||||||
|
|
||||||
RUN systemctl enable nginx.service
|
|
||||||
|
|
||||||
EXPOSE 80/tcp
|
|
||||||
EXPOSE 7777/udp
|
EXPOSE 7777/udp
|
Reference in New Issue
Block a user