-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
31 lines (17 loc) · 910 Bytes
/
Dockerfile
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.7-alpine3.8 as BUILD
RUN apk add git postgresql-dev gcc musl-dev libffi-dev make gnupg
ARG checkout=dev
RUN pip install -r https://raw.githubusercontent.com/NBISweden/LocalEGA-cryptor/master/requirements.txt
RUN pip install git+https://github.com/NBISweden/LocalEGA-cryptor.git
RUN pip install -r https://raw.githubusercontent.com/NBISweden/LocalEGA/${checkout}/requirements.txt
RUN pip install git+https://github.com/NBISweden/LocalEGA.git@${checkout}
FROM python:3.6.7-alpine3.8
LABEL maintainer "EGA System Developers"
RUN apk add --no-cache --update shadow postgresql-dev
RUN groupadd -r lega && \
useradd -M -r -g lega lega
COPY --from=BUILD usr/local/lib/python3.6/ usr/local/lib/python3.6/
COPY --from=BUILD /usr/local/bin/lega-cryptor /usr/local/bin/
COPY --from=BUILD /usr/local/bin/ega-ingest /usr/local/bin/
USER lega:lega
ENTRYPOINT [ "/usr/local/bin/ega-ingest" ]