Skip to content

Commit 5292649

Browse files
committed
build: tweak dockerfile dist build
1 parent 2a2a963 commit 5292649

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
@@ -58,12 +58,13 @@ COPY pyproject.toml pdm.lock /opt/python/
5858
RUN pip install --no-cache-dir --upgrade pip \
5959
&& pip install --no-cache-dir pdm==2.6.1
6060
RUN pdm export --prod > requirements.txt \
61-
&& pdm export -G debug -G test --no-default > requirements-test.txt
61+
&& pdm export -G debug -G test \
62+
--no-default > requirements-test.txt
6263
RUN pip install --user --no-warn-script-location \
6364
--no-cache-dir -r ./requirements.txt
6465
COPY . .
65-
RUN pdm build
66-
RUN pip install --user --no-warn-script-location \
66+
RUN pdm build \
67+
&& pip install --user --no-warn-script-location \
6768
--no-cache-dir "dist/osm_rawdata-$PKG_VERSION-py3-none-any.whl"
6869

6970

0 commit comments

Comments
 (0)