Skip to content

Commit

Permalink
fix: revert to psycopg2-binary (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
allisson authored Oct 25, 2022
1 parent d2902ad commit 662b199
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 23 deletions.
9 changes: 2 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
##### Builder Stage #####
FROM python:3.11-slim as builder

# Install packages
RUN apt-get update && \
apt-get install --no-install-recommends -y build-essential libpq-dev && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*

# Set default path
ENV PATH="/app/.venv/bin:${PATH}"

Expand Down Expand Up @@ -40,7 +34,8 @@ COPY --from=builder /app /app

# Install packages
RUN apt-get update && \
apt-get install --no-install-recommends -y libpq-dev tini && \
apt-get upgrade -y && \
apt-get install --no-install-recommends -y tini && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*

Expand Down
77 changes: 62 additions & 15 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ typer = {extras = ["all"], version = "^0.6.1"}
python-json-logger = "^2.0.4"
rocketry = "^2.3.0"
prometheus-fastapi-instrumentator = "^5.9.1"
psycopg2 = "^2.9.4"
psycopg2-binary = "^2.9.5"

[tool.poetry.group.dev.dependencies]
pytest = "^7"
Expand Down

0 comments on commit 662b199

Please sign in to comment.