forked from zerebom/gpt-pdf-summarizer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (23 loc) · 739 Bytes
/
Dockerfile
File metadata and controls
32 lines (23 loc) · 739 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Use an official Python runtime as a parent image
FROM python:3.9
# Set the working directory to /app
WORKDIR /app
# Install Poetry
RUN pip install poetry
# Copy pyproject.toml and poetry.lock files into the container
COPY pyproject.toml poetry.lock /app/
# Install dependencies
RUN poetry config virtualenvs.create false \
&& poetry install --no-interaction --no-ansi \
&& poetry shell
# Copy the start_services.sh script
COPY start_services.sh /app/
# Copy the rest of the application's code
COPY app /app/app
# Make port 8000 available to the world outside this container
EXPOSE 8000
EXPOSE 8501
# Set environment variables
ENV PYTHONUNBUFFERED=1
# Run the command to start the FastAPI app
CMD ["sh", "start_services.sh"]