summaryrefslogtreecommitdiffstats
path: root/mod/onboardingapi/Dockerfile
blob: 2c3cd0d4e14e085b401fdebfcc4d42d853c465c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
FROM python:3.7-alpine

ARG UID=1000
ARG GID=1000

COPY . /code
WORKDIR /code
RUN apk update && \
    apk add --virtual build-deps gcc python-dev musl-dev && \
    apk add postgresql-dev bash && \
    addgroup -g $GID dcaemod && \
    adduser -s /bin/bash -u $UID -G dcaemod -D dcaemod && \
    pip install .

EXPOSE 8080
USER dcaemod

CMD /code/start.sh