Skip to content

Commit

Permalink
update dockerfiles and compose
Browse files Browse the repository at this point in the history
  • Loading branch information
Highfire1 committed Nov 4, 2024
1 parent 9d17293 commit d663ce9
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 105 deletions.
99 changes: 0 additions & 99 deletions Cache.py

This file was deleted.

17 changes: 17 additions & 0 deletions Dockerfile-api
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
FROM python:3.9

# RUN apt-get update && apt-get install wget gcc -y

# install requirements
COPY requirements.txt requirements.txt
RUN pip3 install -r requirements.txt --no-cache-dir option


# copy all files
COPY /sdk /sdk
COPY Controller.py Controller.py
COPY main.py main.py
COPY api.py api.py


CMD ["uvicorn", "api:app", "--host", "0.0.0.0", "--port", "8000"]
2 changes: 1 addition & 1 deletion Dockerfile → Dockerfile-backend
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3-slim as build
FROM mcr.microsoft.com/playwright/python as build

RUN apt-get update && apt-get install -y g++

Expand Down
25 changes: 20 additions & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,33 @@ networks:
driver: bridge

services:
langara-api:
container_name: langaraapi
langara-watcher-backend:
container_name: langara-watcher-backend
ports:
- '8000:8000'
build:
context: /
dockerfile: Dockerfile-backend
#image: "ghcr.io/highfire1/langaracoursewatcher:latest"
networks:
- backend
volumes:
- .database:/database


langara-watcher-api:
container_name: langara-watcher-api
ports:
- '5000:5000'
build: .
build:
context: /
dockerfile: Dockerfile-api
#image: "ghcr.io/highfire1/langaracoursewatcher:latest"
networks:
- backend
volumes:
- .database:/database
environment:
API_KEY: PLACEHOLDER


volumes:
course_watcher_db:

0 comments on commit d663ce9

Please sign in to comment.