Skip to content

Commit

Permalink
fix: install psql connector in container
Browse files Browse the repository at this point in the history
  • Loading branch information
tymees committed Sep 4, 2024
1 parent 6546fae commit e729859
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,15 @@ WORKDIR /app
COPY . /app

# Install dependencies
## Container dependencies
RUN apk add postgresql-dev gcc musl-dev libffi-dev
RUN pip install gunicorn psycopg2
## App dependencies
RUN apk add git xmlsec gettext
RUN pip install -r requirements.txt
RUN pip install gunicorn

# Cleanup
RUN apk del git
# Cleanup build-only packages
RUN apk del git postgresql-dev gcc musl-dev libffi-dev

# Compile messages
RUN python manage.py compilemessages
Expand Down

0 comments on commit e729859

Please sign in to comment.