diff --git a/server/Dockerfile b/server/Dockerfile index ea72233..8aef4a5 100644 --- a/server/Dockerfile +++ b/server/Dockerfile @@ -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 \ No newline at end of file