-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
31 lines (22 loc) · 1000 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 library/debian:bookworm-slim
USER root
RUN mkdir -p /opt/project/upload
WORKDIR /opt/project
COPY debian_packages.txt /opt/project/debian_packages.txt
RUN apt-get update --allow-insecure-repositories && \
DEBIAN_FRONTEND=noninteractive xargs -a /opt/project/debian_packages.txt \
apt-get install -y --allow-unauthenticated && \
apt-get clean && \
rm -rf /opt/project/debian_packages.txt
# Unset because of https://github.com/psf/requests/issues/3829
ENV REQUESTS_CA_BUNDLE=
# Ignore warnings during requests calls
ENV PYTHONWARNINGS="ignore:Unverified HTTPS request"
ENV MOCK_HOSTNAME=api-mock-server
COPY rsa-cert-generation/create_certs.sh /root/ca/rsa/create_certs.sh
COPY rsa-cert-generation/root-openssl.conf /root/ca/rsa/openssl.cnf
COPY rsa-cert-generation/intermediate-openssl.conf /root/ca/rsa/intermediate/openssl.cnf
COPY app /opt/project/
COPY bin /opt/project/
RUN /root/ca/rsa/create_certs.sh
ENTRYPOINT ["/opt/project/start.sh"]