Fix Docker files for correct start
This commit is contained in:
parent
1e793f135e
commit
e827e73c33
2 changed files with 5 additions and 12 deletions
|
@ -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 ]
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue