Skip to content

Commit

Permalink
Change tar installation location and update ci to only build for linux
Browse files Browse the repository at this point in the history
  • Loading branch information
nss10 committed Dec 10, 2024
1 parent 58677c3 commit 25dfb3c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ jobs:
BuildImageAndPush:
name: Build Image and Push
needs: Security
with:
BUILD_PLATFORMS: "linux/amd64"
# https://github.com/uc-cdis/.github/blob/master/.github/workflows/image_build_push.yaml
uses: uc-cdis/.github/.github/workflows/image_build_push.yaml@master
secrets:
Expand Down
9 changes: 5 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,18 @@ ENV PATH="$(poetry env info --path)/bin:$PATH"
RUN git config --global --add safe.directory /${appname} && COMMIT=`git rev-parse HEAD` && echo "COMMIT=\"${COMMIT}\"" > /$appname/version_data.py \
&& VERSION=`git describe --always --tags` && echo "VERSION=\"${VERSION}\"" >> /$appname/version_data.py



# ------ Final stage ------
FROM base

# install tar
RUN yum install tar -y
# do we need to untar jwt-keys?

#Set python with python3
RUN echo 'alias python="python3"' >> ~/.bashrc && source ~/.bashrc;


# ------ Final stage ------
FROM base

COPY --chown=gen3:gen3 --from=builder /$appname /$appname

CMD ["poetry", "run", "gunicorn", "-c", "deployment/wsgi/gunicorn.conf.py"]

0 comments on commit 25dfb3c

Please sign in to comment.