File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,17 +15,20 @@ RUN apt-get update \
1515 && rm -rf /var/lib/apt/lists/*
1616
1717WORKDIR /src
18- RUN pip install --upgrade hatch pip
18+ RUN pip install --upgrade pip \
19+ && pip install "hatch<1.17" "virtualenv<20.26"
1920COPY pyproject.toml .
20- RUN python -m venv /app \
21- && hatch dep show requirements --all > requirements.txt \
22- && /app/bin/pip install wheel setuptools \
23- && /app/bin/pip install -r requirements.txt
21+
22+ RUN hatch dep show requirements --all > requirements.txt \
23+ && pip install wheel setuptools -r requirements.txt
2424
2525COPY . .
26- RUN ls -la \
27- && hatch build \
28- && ls -la dist/ \
26+ RUN hatch build \
27+ && ls -la dist/
28+
29+ # Create a clean venv for runtime and install the wheel
30+ RUN python -m venv /app \
31+ && /app/bin/pip install --upgrade pip wheel setuptools \
2932 && /app/bin/pip install dist/*.whl
3033
3134
@@ -44,3 +47,5 @@ RUN apt-get update \
4447
4548COPY --from=builder /app /app
4649ENV PATH="/app/bin:$PATH"
50+
51+ RUN python -c "import FastOMA; print(FastOMA.__version__)"
You can’t perform that action at this time.
0 commit comments