Skip to content

Commit d2f5217

Browse files
Update Dockerfile
1 parent 222ea11 commit d2f5217

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

Dockerfile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,27 @@ FROM python:3.11-slim
22

33
WORKDIR /app
44

5+
# Install system dependencies
6+
RUN apt-get update && apt-get install -y \
7+
libgl1-mesa-glx \
8+
libglib2.0-0 \
9+
&& rm -rf /var/lib/apt/lists/*
10+
511
# Copy requirements first to leverage Docker cache
612
COPY requirements.txt .
713
RUN pip install --no-cache-dir -r requirements.txt
814

915
# Copy the rest of the application
1016
COPY . .
1117

18+
# Create models directory
19+
RUN mkdir -p models
20+
21+
# Create directory for temporary files
22+
RUN mkdir -p temp
23+
24+
# Expose the port the app runs on
25+
EXPOSE 8000
26+
1227
# Command to run the application
1328
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]

0 commit comments

Comments
 (0)