Skip to content

Commit

Permalink
updated dependencies to avoid "pg_config" executable error
Browse files Browse the repository at this point in the history
  • Loading branch information
EliseCastle23 committed Oct 22, 2024
1 parent 2bfcb7f commit a0d98f9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,16 @@ RUN groupadd -g 1000 gen3 && \
chown -R gen3:gen3 /$appname && \
chown -R gen3:gen3 /venv

RUN dnf update && dnf install -y \
python3-devel \
postgresql15-server-devel \
&& rm -rf /var/cache/yum

# Builder stage
FROM base AS builder

USER gen3


RUN python -m venv /venv

COPY poetry.lock pyproject.toml /${appname}/
Expand All @@ -50,7 +53,7 @@ COPY --from=builder /venv /venv
COPY --from=builder /$appname /$appname

# install nginx
RUN yum install nginx postgresql-devel -y
RUN yum install nginx -y

# allow nginx to bind to port 80
RUN setcap 'cap_net_bind_service=+ep' /usr/sbin/nginx
Expand Down
2 changes: 2 additions & 0 deletions dockerrun.bash
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
#!/bin/bash

nginx
gunicorn -c /peregrine/deployment/wsgi/gunicorn.conf.py

0 comments on commit a0d98f9

Please sign in to comment.