Skip to content

Commit

Permalink
Fixes to build process
Browse files Browse the repository at this point in the history
  • Loading branch information
cccs-mdr committed Apr 22, 2024
1 parent c172072 commit 8fb648e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ USER howler
RUN touch /tmp/before-pip

# Install howler UI into local so it merges new and old packages
COPY setup.py dist* dist/
COPY dist* dist/

RUN pip install --no-cache-dir --no-warn-script-location --user dist/howler_api-*-py3-none-any.whl && \
rm -rf ~/.cache/pip && \
Expand Down
6 changes: 3 additions & 3 deletions docker/build_container.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#!/bin/bash -ex

# Get version
version=$( (cd .. && python setup.py --version))
version=$( (cd .. && poetry version --short))

# Clean build dir
(cd .. && python setup.py clean --all && rm -rf dist)
(cd .. && rm -rf dist)

# Build wheel
(cd .. && python setup.py bdist_wheel)
(cd .. && poetry build)

# Build container
(cd .. && docker build --build-arg version=$version --no-cache -f docker/Dockerfile -t cccs/howler-api:latest -t cccs/howler-api:$version .)

0 comments on commit 8fb648e

Please sign in to comment.