promptsearchengine / Dockerfile.backend
Jokica17's picture
Added Docker configuration for backend and frontend services:
76d3d9e
raw
history blame
438 Bytes
FROM python:3.11-slim
# Set the working directory
WORKDIR /usr/src/backend
# Copy the necessary files to the working directory
COPY config.py .
COPY app/ ./app/
COPY run.py .
# Add the project root to PYTHONPATH
ENV PYTHONPATH=/usr/src/backend:$PYTHONPATH
# Install dependencies
COPY app/requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Expose the port and run the backend
EXPOSE 8000
CMD ["python", "run.py"]