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 WORKDIR /usr/src/app
COPY requirements.txt ./ COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt RUN pip3 install --no-cache-dir -r requirements.txt
COPY . . COPY . .
ARG script=scalesrv.py
CMD [ "python", $script ]

View file

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