Skip to content

Commit 4285335

Browse files
committed
UnUVify dockerimage
1 parent 1ac87e2 commit 4285335

File tree

1 file changed

+8
-13
lines changed

1 file changed

+8
-13
lines changed

Dockerfile

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,12 @@
1-
FROM python:3.9-slim as builder
2-
3-
WORKDIR /app
4-
RUN pip install uv
5-
COPY requirements.txt .
6-
RUN uv pip compile requirements.txt -o requirements.lock
7-
RUN uv pip install --no-cache -r requirements.txt --system
8-
91
FROM python:3.9-slim
102

113
WORKDIR /app
12-
COPY --from=builder /usr/local /usr/local
134

14-
# Copy everything separately to ensure lib directory is copied correctly
5+
# Install dependencies using standard pip
6+
COPY requirements.txt .
7+
RUN pip install --no-cache-dir -r requirements.txt
8+
9+
# Copy application files
1510
COPY app.py .
1611
COPY lib ./lib
1712
COPY static ./static
@@ -21,10 +16,10 @@ COPY templates ./templates
2116
RUN if [ ! -f lib/__init__.py ]; then touch lib/__init__.py; fi
2217

2318
# Set Python path explicitly to include current directory
24-
ENV PYTHONPATH=.
19+
ENV PYTHONPATH=/app
2520
ENV PORT=5000
2621

2722
EXPOSE 5000
2823

29-
# Run with explicit module path
30-
CMD ["sh", "-c", "cd /app && PYTHONPATH=/app python -m gunicorn --bind 0.0.0.0:$PORT app:app"]
24+
# Run with explicit module path
25+
CMD ["sh", "-c", "python -m gunicorn --bind 0.0.0.0:$PORT app:app"]

0 commit comments

Comments
 (0)