From 57857e37597f666f255c88240398769adedc5216 Mon Sep 17 00:00:00 2001 From: Akashdeep Dhar Date: Feb 23 2021 15:52:40 +0000 Subject: Added Docker configuration to generate container Signed-off-by: Akashdeep Dhar --- diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..dfb1afb --- /dev/null +++ b/Dockerfile @@ -0,0 +1,9 @@ +FROM python:3.8-alpine +ENV PYTHONUNBUFFERED=1 +WORKDIR /supervisor-driver-service +COPY requirements.txt requirements.txt +RUN apk add --no-cache docker gcc musl-dev linux-headers +RUN pip install -r requirements.txt +COPY . . +EXPOSE 8888 +EXPOSE 6969 diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..6520b55 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,11 @@ +version: "3.8" +services: + endpoint: + build: . + command: python3 falc.py -p 8888 -s 6969 + ports: + - "8888:8888" + - "6969:6969" + volumes: + - ".:/supervisor-driver-service" + - "/var/run/docker.sock:/var/run/docker.sock"