diff --git a/build.dockerfile b/build.dockerfile index 9d81e7c5..dff04268 100644 --- a/build.dockerfile +++ b/build.dockerfile @@ -1,10 +1,18 @@ FROM python:3.11.0-slim +RUN apt-get update && apt-get install -y \ + build-essential \ + git \ + python-dev \ + && rm -rf /var/lib/apt/lists/* WORKDIR /data/Resume-Matcher -COPY . . -RUN apt-get update -RUN apt-get install -y build-essential python-dev git RUN pip install -U pip setuptools wheel +COPY requirements.txt ./ RUN pip install -r requirements.txt +COPY . . +# debug +RUN pwd && sleep 3 +RUN ls -alh Data/Resumes && sleep 5 + RUN python run_first.py ENTRYPOINT [ "streamlit", "run", "streamlit_app.py"] diff --git a/docker-compose.yml b/docker-compose.yml index 5cda3867..10de879c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -6,3 +6,7 @@ services: dockerfile : build.dockerfile ports: - 80:8501 + + volumes: + - ./Data/Resumes:/data/Resume-Matcher/Data/Resumes + - ./Data/Processed:/data/Resume-Matcher/Data/Processed