fix uv run
Browse files- Dockerfile +6 -5
Dockerfile
CHANGED
@@ -15,6 +15,10 @@ WORKDIR /app
|
|
15 |
RUN useradd -m appuser
|
16 |
RUN chown -R appuser:appuser /app
|
17 |
|
|
|
|
|
|
|
|
|
18 |
# Set environment variable for uv to use a writable directory
|
19 |
ENV UV_CACHE_DIR=/app/.cache/uv
|
20 |
|
@@ -25,11 +29,8 @@ RUN chown -R appuser:appuser /app/.cache
|
|
25 |
# Switch to the non-root user
|
26 |
USER appuser
|
27 |
|
28 |
-
# Install uv
|
29 |
-
RUN pip install uv
|
30 |
-
|
31 |
# Expose port 8001
|
32 |
EXPOSE 8001
|
33 |
|
34 |
-
# Command to run the application
|
35 |
-
CMD ["uv", "run", "tinyhackathon/score_explorer/run.py"]
|
|
|
15 |
RUN useradd -m appuser
|
16 |
RUN chown -R appuser:appuser /app
|
17 |
|
18 |
+
# Install uv using pip and ensure it's in PATH
|
19 |
+
RUN pip install uv
|
20 |
+
RUN which uv
|
21 |
+
|
22 |
# Set environment variable for uv to use a writable directory
|
23 |
ENV UV_CACHE_DIR=/app/.cache/uv
|
24 |
|
|
|
29 |
# Switch to the non-root user
|
30 |
USER appuser
|
31 |
|
|
|
|
|
|
|
32 |
# Expose port 8001
|
33 |
EXPOSE 8001
|
34 |
|
35 |
+
# Command to run the application using the full path to uv
|
36 |
+
CMD ["python", "-m", "uv", "run", "tinyhackathon/score_explorer/run.py"]
|