finished writeing compatibility with docker; untested
This commit is contained in:
4
DOCKERFILE
Normal file
4
DOCKERFILE
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
FROM python:3
|
||||||
|
WORKDIR /usr/src/
|
||||||
|
COPY requirements.txt /usr/src/requirements.txt
|
||||||
|
RUN pip install -r requirements.txt
|
||||||
@@ -5,7 +5,7 @@ services:
|
|||||||
command: python -m uvicorn app.main:app --host 0.0.0.0 --port 80
|
command: python -m uvicorn app.main:app --host 0.0.0.0 --port 80
|
||||||
biuld:
|
biuld:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: Dockerfile_app
|
dockerfile: DOCKERFILE
|
||||||
volumes:
|
volumes:
|
||||||
- ./app:/python
|
- ./app:/python
|
||||||
- ./unizeug:/unizeug
|
- ./unizeug:/unizeug
|
||||||
@@ -42,7 +42,7 @@ services:
|
|||||||
command: python /python/init.py
|
command: python /python/init.py
|
||||||
biuld:
|
biuld:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: Dockerfile_scaner
|
dockerfile: DOCKERFILE
|
||||||
volumes:
|
volumes:
|
||||||
- ./app:/python
|
- ./app:/python
|
||||||
- ./unizeug
|
- ./unizeug
|
||||||
|
|||||||
Reference in New Issue
Block a user