Skip to content

Commit

Permalink
fix packages/halmos/Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
karmacoma-eth committed Dec 4, 2024
1 parent 67fb3db commit b9cf162
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions packages/halmos/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
FROM ghcr.io/a16z/halmos-builder:latest

# Enable the virtual environment
ENV PATH="/halmos/.venv/bin:$PATH"
ENV VIRTUAL_ENV='/halmos/.venv'
# - enable the virtual environment
# - install halmos and its dependencies in UV_PROJECT_ENVIRONMENT
# - enable bytecode compilation for faster startup
# - disable downloading any additional packages
# - use copy mode for linking instead of symlinking (because we mount to /src temporarily)
ENV PATH="/halmos/.venv/bin:$PATH" \
UV_PROJECT_ENVIRONMENT='/halmos/.venv' \
UV_COMPILE_BYTECODE=1 \
UV_PYTHON_DOWNLOADS=never \
UV_LINK_MODE=copy

# Install halmos, assuming it is checked out in the context directory
WORKDIR /halmos
# Install halmos, assuming it is checked out in the current host directory
RUN --mount=type=bind,source=../..,target=/src,readonly=false \
uv sync --frozen
cd /src && \
uv sync --frozen --extra dev

# Set a nicer prompt
ENV IMAGE_NAME=halmos
Expand Down

0 comments on commit b9cf162

Please sign in to comment.