diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..cbee6b3 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,16 @@ +services: + reVCDOS: + hostname: reVCDOS + build: + context: . + dockerfile: docker/Dockerfile + ports: + - "${OUT_HOST-0.0.0.0}:${OUT_PORT-8000}:${IN_PORT-8000}" + volumes: + - .:/app + networks: + - default + command: + - python + - server.py + restart: unless-stopped diff --git a/docker/Dockerfile b/docker/Dockerfile new file mode 100644 index 0000000..c42bf77 --- /dev/null +++ b/docker/Dockerfile @@ -0,0 +1,8 @@ +FROM python:3.11-slim + +WORKDIR /app + +COPY requirements.txt ./requirements.txt +RUN pip install --no-cache-dir -r requirements.txt + +ENV PYTHONUNBUFFERED=1 \ No newline at end of file