Skip to content

Commit

Permalink
Update Dockerfile in order to build the image with the latest stable …
Browse files Browse the repository at this point in the history
…version
  • Loading branch information
freud14 committed Apr 28, 2022
1 parent ebd1d4b commit 79c9774
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*
8 changes: 7 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,13 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
&& apt-get clean && rm -rf /var/lib/apt/lists/*

RUN pip3 install --no-cache-dir --upgrade pip
RUN pip3 install --no-cache-dir poutyne
RUN CFLAGS="-g0 -Os -DNDEBUG -Wl,--strip-all -I/usr/include:/usr/local/include -L/usr/lib:/usr/local/lib" \
POUTYNE_RELEASE_BUILD=1 \
pip3 install --no-cache-dir \
--compile \
--global-option=build_ext \
--global-option="-j 4" \
--no-deps -U git+https://github.com/GRAAL-Research/poutyne.git@stable

RUN find /opt/conda/lib/ -follow -type f -name '*.a' -delete \
&& find /opt/conda/lib/ -follow -type f -name '*.pyc' -delete \
Expand Down

0 comments on commit 79c9774

Please sign in to comment.