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
377 B
Docker
Raw Normal View History

2020-04-30 19:16:46 -04:00
FROM fedora:32
2020-05-01 17:42:59 -04:00
# Build and setup app
RUN dnf install g++ enet-devel gtest gmock gmock-devel gtest-devel -y
2020-04-30 19:16:46 -04:00
ADD / /dt
RUN cd /dt; /dt/build.sh
CMD ["/dt/builds/server.out"]
2020-05-01 17:42:59 -04:00
# 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 start nginx.service
EXPOSE 80/tcp
EXPOSE 7777/udp