Dockerfile with working healthcheck endpoint

This commit is contained in:
Layla 2020-05-02 03:02:06 -04:00
parent e2a8f446bb
commit fee56c6042
No known key found for this signature in database
GPG Key ID: A494D9357BA1BE31

View File

@ -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