diff --git a/Dockerfile b/Dockerfile index a545318..2b85b9f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 ] \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 21146d0..3ed3f84 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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