-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
34 lines (27 loc) · 940 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
33
34
FROM ubuntu:18.04
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
&& apt-get install -y python3-pip python-dev\
&& apt-get install -y software-properties-common \
&& add-apt-repository ppa:deadsnakes/ppa \
&& apt-get install -y python3.7 \
&& apt-get update
RUN apt-get install -y python3-pip python3.7-dev \
&& pip3 install --upgrade pip \
&& apt-get install -y curl \
&& apt-get update
# venv build
# without the use of VIRTUAL_ENV the venv will not activate or be seen
ENV VIRTUAL_ENV=/opt/venv
RUN python3.7 -m venv $VIRTUAL_ENV --without-pip
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
RUN python get-pip.py
RUN rm get-pip.py
RUN python --version
RUN pip --version
ADD ./ /home/project/pyExpandObjects
WORKDIR /home/project/pyExpandObjects/
RUN python -m pip install -r requirements.txt
RUN pyinstaller linux_onefile_main.spec
#RUN pyinstaller main.spec