File size: 480 Bytes
0a6f6d8 6044b05 0a6f6d8 6044b05 0a6f6d8 6044b05 070ba59 6044b05 0a6f6d8 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
FROM python:3.11.5-slim
WORKDIR /app
# Copy the application files into the container
COPY app.py requirements.txt /app/
COPY src /app/src
COPY indexes /app/indexes
# Install dependencies
RUN pip install --no-cache-dir --upgrade pip && \
pip install --no-cache-dir -r requirements.txt
# Expose the port on which your application runs inside the container
EXPOSE 7860
# Use ENTRYPOINT to specify the command to run when the container starts
ENTRYPOINT ["python", "app.py"]
|