job_suggestor/Dockerfile

23 lines
548 B
Docker

FROM python:3.11-slim
# Set working directory
WORKDIR /app
# Install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy project files
COPY job_suggestor.py .
COPY cv_sebastian_egli.txt .
# already_suggested_companies.txt will be mounted as a volume, so we don't COPY it
# but let's make sure the file exists in container
RUN touch already_suggested_companies.txt
# Environment variables (to be passed at runtime)
ENV GEMINI_API_KEY=""
ENV GMAIL_PW=""
# Run script
CMD ["python", "job_suggestor.py"]