Skip to content

Commit

Permalink
use slim instead of alpine
Browse files Browse the repository at this point in the history
  • Loading branch information
keeth committed Mar 11, 2024
1 parent 956bd4f commit c177125
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions be/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
FROM python:3-alpine
FROM python:3.11-slim
ENV DJANGO_SETTINGS_MODULE levity.settings
ARG POETRY_ARGS
WORKDIR /app
COPY poetry.lock .
COPY pyproject.toml .
RUN apk --no-cache add libpq && \
RUN apt-get update && apt-get -y install libpq-dev gcc && \
pip install poetry && \
poetry install --no-root $POETRY_ARGS && \
poetry install --no-root && \
apt-get -y remove gcc && \
rm -rf ~/.cache/pip && \
rm -rf ~/.cache/pypoetry/{cache,artifacts} && \
find ~/.cache/pypoetry/virtualenvs -name '*.pyc' -exec rm -rf '{}' \;
Expand Down

0 comments on commit c177125

Please sign in to comment.