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
|
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 ]
|
|
|
@ -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
|
|
||||||
|
|
Loading…
Reference in a new issue