-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
35 lines (21 loc) · 979 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
32
33
34
35
FROM python:3.11-alpine3.18 as BUILD
RUN apk add --no-cache git gcc musl-dev libffi-dev make gnupg && \
rm -rf /var/cache/apk/*
COPY requirements.txt /root/sdaorch/requirements.txt
COPY sda_orchestrator /root/sdaorch/sda_orchestrator
COPY setup.py /root/sdaorch
RUN pip install --upgrade pip && \
pip install -r /root/sdaorch/requirements.txt && \
pip install /root/sdaorch
FROM python:3.11-alpine3.18
LABEL maintainer "NeIC System Developers"
LABEL org.label-schema.schema-version="1.0"
RUN apk add --no-cache --update supervisor
COPY --from=BUILD /usr/local/lib/python3.11/ usr/local/lib/python3.11/
COPY --from=BUILD /usr/local/bin/sdainbox /usr/local/bin/
COPY --from=BUILD /usr/local/bin/sdacomplete /usr/local/bin/
COPY --from=BUILD /usr/local/bin/sdaverified /usr/local/bin/
ADD supervisor.conf /etc/
RUN echo "nobody:x:65534:65534:nobody:/:/sbin/nologin" > passwd
USER 65534
ENTRYPOINT ["supervisord", "--configuration", "/etc/supervisor.conf"]