Reviewed-on: #4
This commit is contained in:
commit
4aafb61ecd
2 changed files with 15 additions and 0 deletions
|
|
@ -8,4 +8,6 @@ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
|||
|
||||
COPY ./app /code/app
|
||||
|
||||
RUN mkdir -p /code/data
|
||||
|
||||
CMD ["fastapi", "run", "app/main.py", "--proxy-headers", "--port", "80"]
|
||||
13
docker-compose.yml
Normal file
13
docker-compose.yml
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
services:
|
||||
backend:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
container_name: website-backend
|
||||
restart: unless-stopped
|
||||
expose:
|
||||
- "8000"
|
||||
env_file:
|
||||
- .env
|
||||
volumes:
|
||||
- C:/Users/hanna/Desktop/Dagemark-Backend/data:/code/data
|
||||
Loading…
Reference in a new issue