Skip to content

Commit

Permalink
fix docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
damienbfs committed Jun 18, 2024
1 parent 075cc2f commit 0da1044
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/push_docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- develop
- release/**
tags:
- v**

Expand All @@ -30,7 +31,7 @@ jobs:
tags: |
type=sha
type=semver, pattern={{version}}
latest, enable=${{ github.event_name == 'release' }}
latest #, enable=${{ github.event_name == 'release' }}
-
name: Set up QEMU
uses: docker/setup-qemu-action@v3
Expand Down
8 changes: 0 additions & 8 deletions server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,12 @@ RUN pip install --no-cache-dir --upgrade -r requirements.txt
WORKDIR /code

FROM lomas_server_base AS lomas_server
# Switch to non-root user
USER 1000
COPY ./lomas_server/ /code/
COPY ./LICENSE /code/LICENSE
COPY ./data/ /data/
CMD ["python", "uvicorn_serve.py"]

FROM lomas_server_base AS lomas_server_dev
# Switch to non-root user
USER 1000
ENV PYTHONDONTWRITEBYTECODE 1
CMD ["python", "uvicorn_serve.py"]

Expand All @@ -26,15 +22,11 @@ COPY ./requirements_streamlit.txt /requirements_streamlit.txt
RUN pip install --no-cache-dir --upgrade -r /requirements_streamlit.txt

FROM lomas_admin_dashboard_base AS lomas_admin_dashboard
# Switch to non-root user
USER 1000
COPY ./lomas_server/ /code/
COPY ./LICENSE /code/LICENSE
COPY ./data/ /data/
CMD ["streamlit", "run", "administration/dashboard/about.py"]

FROM lomas_admin_dashboard_base AS lomas_admin_dashboard_dev
# Switch to non-root user
USER 1000
ENV PYTHONDONTWRITEBYTECODE 1
CMD ["streamlit", "run", "administration/dashboard/about.py"]

0 comments on commit 0da1044

Please sign in to comment.