-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (24 loc) · 903 Bytes
/
Dockerfile
File metadata and controls
25 lines (24 loc) · 903 Bytes
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
FROM ubuntu:20.04
MAINTAINER Pinecrypt Labs <info@pinecrypt.com>
ENV PYTHONUNBUFFERED=1
ENV LC_ALL C.UTF-8
ENV DEBIAN_FRONTEND noninteractive
RUN echo force-unsafe-io > /etc/dpkg/dpkg.cfg.d/docker-apt-speedup \
&& echo "Dpkg::Use-Pty=0;" > /etc/apt/apt.conf.d/99quieter \
&& apt-get update -qq \
&& apt-get install -y -qq \
bash build-essential python3-dev cython3 libffi-dev libssl-dev \
libkrb5-dev ldap-utils libsasl2-modules-gssapi-mit libsasl2-dev libldap2-dev \
python python3-pip python3-cffi \
libncurses5-dev gawk wget unzip git rsync \
&& apt-get clean \
&& rm /etc/dpkg/dpkg.cfg.d/docker-apt-speedup
WORKDIR /src
COPY requirements.txt /src/
RUN pip3 install --no-cache-dir -r requirements.txt
COPY pinecrypt/. /src/pinecrypt/
COPY MANIFEST.in setup.py README.md /src/
COPY misc/. /src/misc/
RUN python3 -m compileall .
RUN pip3 install --no-cache-dir .
RUN rm -Rfv /src