Fix Docker files for correct start

This commit is contained in:
Asaril 2020-03-12 12:53:20 +01:00
parent 1e793f135e
commit e827e73c33
2 changed files with 5 additions and 12 deletions

View file

@ -3,9 +3,6 @@ FROM python:3.8-slim-buster
WORKDIR /usr/src/app
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
RUN pip3 install --no-cache-dir -r requirements.txt
COPY . .
ARG script=scalesrv.py
CMD [ "python", $script ]

View file

@ -1,14 +1,10 @@
version: '3'
services:
server:
build:
context: .
args:
script: scalesrv.py
build: .
command: python3 scalesrv.py
ports:
- "18001:18001"
clustering:
build:
context: .
args:
script: cluster.py
build: .
command: python3 cluster.py