forked from MetLife/OCSPChecker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
32 lines (24 loc) · 909 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
# Usually you do not have to specify amd64, but on an Apple M1 you do if you want to use packages
# that are not optimized for arm64 like NaSSL
FROM --platform=amd64 python:3.11.1-slim-bullseye
SHELL ["/bin/bash", "--login", "-c"]
ENV DEBIAN_FRONTEND noninteractive
ENV LANG C.UTF-8
RUN useradd -m ocspdev
RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates \
netbase \
curl \
git \
bash-completion \
&& rm -rf /var/lib/apt/lists/*
RUN pip install --no-cache-dir --quiet --upgrade pip setuptools wheel \
pip install --no-cache-dir --quiet pytest pytest-cov && \
pip install --no-cache-dir --quiet twine && \
pip install --no-cache-dir --quiet pylint && \
pip install --no-cache-dir --quiet black
USER ocspdev
WORKDIR /home/ocspdev
# Copy OcspChecker Folder
COPY --chown=ocspdev:ocspdev . /home/ocspdev/OcspChecker/
CMD [ "bash" ]