ai-career-coach / Dockerfile
Nikolay Angelov
move everything to one app on port 7860 due to hugging face space limitations
224b69c
raw
history blame contribute delete
549 Bytes
FROM python:3.12-slim
RUN useradd -m -u 1000 user
ENV PATH="/home/user/.local/bin:$PATH"
WORKDIR /app
# Install system packages as root
RUN apt-get update && \
apt-get install -y --no-install-recommends wget git && \
rm -rf /var/lib/apt/lists/*
# Switch to non-root user for the rest of the build
USER user
COPY --chown=user requirements.txt requirements.txt
RUN pip install --no-cache-dir --upgrade -r requirements.txt
COPY --chown=user . /app
# Expose Gradio port (used by Hugging Face Spaces)
EXPOSE 7860
CMD ["python", "main.py"]