Dockerized application
This commit is contained in:
parent
5b57419b96
commit
cb02a1fdc6
11
Dockerfile
Normal file
11
Dockerfile
Normal 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
15
docker-compose.yml
Normal 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
|
Loading…
x
Reference in New Issue
Block a user