Skip to content

Commit

Permalink
Docker: Make it more compatible with setuptools-scm
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianFP committed Oct 16, 2024
1 parent 80f9a1c commit ecb3997
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ on:
- "v*"

jobs:
build:
docker-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- id: meta
uses: docker/metadata-action@v5
with:
images: |
ghcr.io/JulianFP/project-W_backend
ghcr.io/Julianfp/project-w_backend
tags: |
type=ref,event=branch
type=semver,pattern={{version}}
Expand Down
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ RUN pip install gunicorn

COPY . .

RUN pip install .
RUN --mount=source=.git,target=.git,type=bind \
pip install --no-cache-dir -e .

CMD ["gunicorn", "--bind", "backend:8080", "project_W:create_app()"]

Expand Down

0 comments on commit ecb3997

Please sign in to comment.