-
Notifications
You must be signed in to change notification settings - Fork 21
/
Dockerfile
36 lines (26 loc) · 1.16 KB
/
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
36
FROM ubuntu:22.04
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y \
python3.10 \
python3.10-venv \
python3.10-dev \
python3-pip \
git \
gcc \
build-essential \
libssl-dev \
&& rm -rf /var/lib/apt/lists/*
RUN mkdir -p /tmp/log_dev
RUN chmod -R 755 /tmp/log_dev
RUN git clone https://github.com/eu-digital-identity-wallet/eudi-srv-web-issuing-eudiw-py.git /root/eudi-srv-web-issuing-eudiw-py
WORKDIR /root/eudi-srv-web-issuing-eudiw-py
RUN python3 -m venv venv
RUN /root/eudi-srv-web-issuing-eudiw-py/venv/bin/pip install --no-cache-dir -r app/requirements.txt
EXPOSE 5000
ENV FLASK_APP=app\
FLASK_RUN_PORT=5000\
FLASK_RUN_HOST=0.0.0.0\
SERVICE_URL="https://127.0.0.1:5000/" \
EIDAS_NODE_URL="https://preprod.issuer.eudiw.dev/EidasNode/"\
DYNAMIC_PRESENTATION_URL="https://dev.verifier-backend.eudiw.dev/ui/presentations/"
CMD ["sh", "-c", "cp /root/secrets/config_secrets.py /root/eudi-srv-web-issuing-eudiw-py/app/app_config/ && export REQUESTS_CA_BUNDLE=/root/secrets/cert.pem && /root/eudi-srv-web-issuing-eudiw-py/venv/bin/flask run --cert=/root/secrets/cert.pem --key=/root/secrets/key.pem"]