-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
23 lines (19 loc) · 995 Bytes
/
Dockerfile
File metadata and controls
23 lines (19 loc) · 995 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# load alpine server with nginx installed
FROM python:3.12-alpine
# Needed for pycurl
ENV PYCURL_SSL_LIBRARY=openssl
# install additional packages
RUN apk add --no-cache --virtual build-deps curl-dev gcc musl-dev
RUN apk add --no-cache curl openssl jpeg libpng git
# change the directory
WORKDIR /app
# copy Happyface core and analyses to image
COPY . /app/
# install python packages, remove build dependencies and cache and add CERN CA certificates
RUN pip install --upgrade --no-cache-dir pip setuptools wheel \
&& pip install --no-cache-dir -r requirements.txt \
&& apk del build-deps \
&& rm -r /root/.cache \
&& curl https://ca.cern.ch/cafiles/certificates/CERN%20Grid%20Certification%20Authority\(1\).crt | dos2unix >> /etc/ssl/certs/ca-certificates.crt \
&& curl https://ca.cern.ch/cafiles/certificates/CERN%20Root%20Certification%20Authority%202.crt | openssl x509 -inform DER -outform PEM >> /etc/ssl/certs/ca-certificates.crt
ENTRYPOINT [ "/app/entrypoint_happyface.sh" ]