We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9041dfb commit 53499e5Copy full SHA for 53499e5
Dockerfile
@@ -3,11 +3,13 @@ FROM python:3.11
3
RUN apt-get update && \
4
apt-get clean && \
5
rm -rf /var/lib/apt/lists/*
6
-
+COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
7
ENV PYTHONUNBUFFERED=1
8
WORKDIR /opt/hackergame
9
-COPY requirements.txt /opt/hackergame/
10
-RUN pip3 install --upgrade -r requirements.txt
+RUN --mount=type=cache,target=/root/.cache/uv \
+ --mount=type=bind,source=uv.lock,target=uv.lock \
11
+ --mount=type=bind,source=pyproject.toml,target=pyproject.toml \
12
+ uv sync --locked --no-install-project
13
# Bind project inside instead of copying it
14
# to avoid copying credentials inside container
15
# COPY ./ /opt/hackergame/
0 commit comments