Skip to content

Commit

Permalink
Hotfix: server should not be installed from wheel
Browse files Browse the repository at this point in the history
  • Loading branch information
AxisAlexNT committed Apr 4, 2023
1 parent baa74c8 commit bc3c696
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/build_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -440,16 +440,11 @@ jobs:
with:
name: HiCT_Utils_wheel
path: ./build-context/
- name: Load built HiCT_Server
uses: actions/download-artifact@v3
with:
name: HiCT_Server_wheel
path: ./build-context/
- name: Move all wheels to the build context directly
run: find ./build-context/ -type f -name "*.whl" -print0 | xargs -0 mv -t ./build-context/dist/
continue-on-error: true
# - name: Copy HiCT_Server to build context
# run: cp -rf ./HiCT_Server/ ./build-context/
- name: Copy HiCT_Server to build context
run: cp -rf ./HiCT_Server/ ./build-context/
- name: Copy Dockerfile to build directory
run: cp -rf ./docker/full.Dockerfile ./build-context/docker/full.Dockerfile
- name: Copy NGINX config
Expand Down
4 changes: 2 additions & 2 deletions docker/full.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ ENV UWSGI_PROCESSES=1
WORKDIR /app
COPY dist/*.whl .
# COPY HiCT_Library/dist/*.whl .
# COPY HiCT_Server/ .
COPY HiCT_Server/ .
COPY dist/webui/* /app/static/
RUN find -type f -name "*.whl" | xargs pip install --upgrade --no-cache-dir
RUN find -type f -name "*.whl" | xargs -n 1 rm -f
Expand All @@ -13,7 +13,7 @@ RUN unset UWSGI_CHEAPER
RUN unset UWSGI_PROCESSES
RUN export UWSGI_PROCESSES=1
RUN python -m compileall -o 2 -r 3 -f -e .
# RUN pip install --upgrade --no-cache-dir .
RUN pip install --upgrade --no-cache-dir .
EXPOSE 5000 8080
ENV STATIC_INDEX=1
RUN rm -f /etc/nginx/conf.d/nginx.conf
Expand Down

0 comments on commit bc3c696

Please sign in to comment.