Skip to content

Commit

Permalink
Merge upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
annabunches committed Jul 30, 2020
1 parent 44cdc8a commit 2cb9fa9
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,16 @@ COPY requirements.txt /build/
RUN pip install --user --no-cache-dir -r requirements.txt && pip install --user --no-cache-dir uwsgi

### Final image
FROM alpine
FROM python:2-slim

WORKDIR /srv
RUN addgroup -S django && adduser -S django -G django
RUN useradd django

COPY --from=build --chown=django:django /root/.local /home/django/.local

RUN apk add --no-cache \
python2 \
mysql-client \
mariadb-connector-c \
bash
RUN apt-get update && apt-get install -y \
default-mysql-client \
libmariadb3

USER django

Expand Down

0 comments on commit 2cb9fa9

Please sign in to comment.