Dockerized application

This commit is contained in:
Dmitriy Shishkov 2020-09-13 13:48:28 +03:00
parent 5b57419b96
commit cb02a1fdc6
2 changed files with 26 additions and 0 deletions

11
Dockerfile Normal file
View File

@ -0,0 +1,11 @@
FROM ubuntu
WORKDIR /app
COPY . /app
EXPOSE 8080
RUN apt update -y && apt install make clang -y
RUN make

15
docker-compose.yml Normal file
View File

@ -0,0 +1,15 @@
networks:
web:
external: true
services:
c-dmitriy:
container_name: c-dmitriy
restart: unless-stopped
build: .
environment:
- PORT=8080
expose:
- 8080
command: ./build/server 8080
networks:
- web