fixed ports

This commit is contained in:
Dmitriy Shishkov 2021-03-15 19:01:52 +05:00
parent 788e0694d8
commit bc6ff5fc55
No known key found for this signature in database
GPG Key ID: 7CAE12ED13853CAC
2 changed files with 3 additions and 16 deletions

View File

@ -1,11 +1,11 @@
FROM ubuntu
FROM ubuntu:18.04
WORKDIR /app
COPY . /app
EXPOSE $PORT
RUN apt update -y && apt install make clang -y
RUN make
CMD ["./build/server", "$PORT"]

View File

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