Skip to content

Commit

Permalink
Merge pull request #614 from scidsg/fix-docker-builds
Browse files Browse the repository at this point in the history
fix docker builds
  • Loading branch information
brassy-endomorph committed Sep 20, 2024
2 parents 2b2e30f + 26c8f48 commit 935551f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-and-deploy-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
file: ./Dockerfile.prod
push: true
tags: |
ghcr.io/${{ github.repository }}/hushline:${{ github.ref_name }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
file: ./Dockerfile.prod
push: true
tags: ghcr.io/${{ github.repository }}/hushline:latest
platforms: linux/amd64,linux/arm64
Expand Down
5 changes: 3 additions & 2 deletions Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@
FROM python:3.12.6-slim-bookworm

RUN apt-get update && \
apt-get install -y \
apt-get upgrade -y && \
apt-get install -y --no-install-recommends \
build-essential \
libffi-dev \
libpq-dev

RUN pip install poetry

WORKDIR /app
ENV PYTHONPATH /app
ENV PYTHONPATH=/app

COPY pyproject.toml poetry.lock .

Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.prod
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# vim: set syntax=dockerfile :
FROM python:3.12.6-bookworm-slim
FROM python:3.12.6-slim-bookworm

WORKDIR /app

Expand Down

0 comments on commit 935551f

Please sign in to comment.