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

20 lines
338 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
2020-05-01 17:43:26 -04:00
RUN systemctl enable nginx.service
2020-05-01 17:42:59 -04:00
EXPOSE 80/tcp
EXPOSE 7777/udp