Skip to content

Commit 55e042b

Browse files
fix: workdir is configured as bot on the host environment
1 parent 9dcf169 commit 55e042b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
FROM python:3.10-slim
22
COPY --from=ghcr.io/astral-sh/uv:0.8.19 /uv /uvx /bin/
3-
WORKDIR /app
3+
4+
WORKDIR /bot
45

56
# Enable bytecode compilation
67
ENV UV_COMPILE_BYTECODE=1
@@ -27,12 +28,12 @@ RUN --mount=type=cache,target=/root/.cache/uv \
2728

2829
# Then, add the rest of the project source code and install it
2930
# Installing separately from its dependencies allows optimal layer caching
30-
COPY . /app
31+
COPY . /bot
3132
RUN --mount=type=cache,target=/root/.cache/uv \
3233
uv sync --locked --no-dev
3334

3435
# Place executables in the environment at the front of the path
35-
ENV PATH="/app/.venv/bin:$PATH"
36+
ENV PATH="/bot/.venv/bin:$PATH"
3637

3738

3839
ENTRYPOINT ["python3", "-m", "monty"]

0 commit comments

Comments
 (0)