aboutsummaryrefslogtreecommitdiffstats
path: root/docker/app/alpine/3.6/Dockerfile
blob: 1abcd5375d13053ef33e5f14c7af2e1c35127c48 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
FROM python:3.6-alpine

STOPSIGNAL SIGQUIT
ARG EXTRAS=deploy

RUN adduser \
    -D \
    -H \
    -u 1500 \
    pysite

RUN apk add --no-cache --virtual build \
        gcc \
        linux-headers \
        musl-dev \
    && \
        apk add --no-cache \
        curl \
        postgresql-dev

WORKDIR /app

COPY Pipfile /app/Pipfile
COPY Pipfile.lock /app/Pipfile.lock
RUN python3 -m pip install pipenv \
    && python3 -m pipenv install --dev --system --deploy \
    && apk del --purge build

COPY . .

CMD ["uwsgi", "--ini", "docker/app/uwsgi.ini"]