This repository has been archived on 2023-04-11. You can view files and clone it, but cannot push or open issues or pull requests.
defend-together/server/Dockerfile

23 lines
378 B
Docker

FROM fedora:32
# Build and setup app
RUN dnf install g++ enet-devel gtest gmock gmock-devel gtest-devel -y
ADD / /dt
RUN cd /dt; /dt/build.sh
CMD ["/dt/builds/server.out"]
# Setup status endpoint
RUN dnf install nginx -y
COPY nginx.conf /etc/nginx/conf.d/nginx.conf
RUN rm /etc/nginx/conf.d/default.conf
RUN systemctl enable nginx.service
EXPOSE 80/tcp
EXPOSE 7777/udp