-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
38 lines (31 loc) · 867 Bytes
/
Dockerfile
File metadata and controls
38 lines (31 loc) · 867 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
26
27
28
29
30
31
32
33
34
35
36
37
38
FROM ubuntu:20.04
LABEL description "Renderable container image."
LABEL version "1.0.0"
LABEL maintainer "Danilo Peixoto <danilopeixoto@outlook.com>"
ENV CONTAINER_NAME "renderable-box"
ENV PYTHON_VERSION "3.7.0"
WORKDIR /usr/src/renderable-box/
COPY . .
RUN apt-get update && apt-get install -y \
wget \
zip \
git \
build-essential \
zlib1g-dev \
libncurses5-dev \
libgdbm-dev \
libnss3-dev \
libssl-dev \
libreadline-dev \
libffi-dev
RUN wget https://www.python.org/ftp/python/${PYTHON_VERSION}/Python-${PYTHON_VERSION}.tgz \
&& tar -xvzf Python-${PYTHON_VERSION}.tgz \
&& cd Python-${PYTHON_VERSION} \
&& ./configure --enable-optimizations \
&& make install . \
&& cd .. \
&& rm -rf Python-${PYTHON_VERSION}.tgz \
&& rm -rf Python-${PYTHON_VERSION}
RUN pip3 install --upgrade pip
RUN pip3 install .
CMD ["renderable-box"]