Skip to content
This repository has been archived by the owner on Mar 6, 2023. It is now read-only.

Commit

Permalink
fix dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
KumaTea committed Dec 15, 2020
1 parent 68c89e8 commit f893a0d
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 13 deletions.
8 changes: 4 additions & 4 deletions build/py36/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@ ENV DEBIAN_FRONTEND=noninteractive
RUN set -xe \
\
&& echo "cd /root" >> /root/.bashrc \
&& cd /root \
&& apt update \
&& apt install -y bash build-essential ca-certificates cmake curl git libjpeg-dev libpng-dev libssl-dev nano screen wget xz-utils zlib1g-dev
&& apt install -y bash build-essential ca-certificates cmake curl git libffi-dev libssl-dev nano wget xz-utils zlib1g-dev

RUN set -xe \
\
&& cd /root \
&& wget -q https://www.python.org/ftp/python/3.6.12/Python-3.6.12.tar.xz -O /root/py36.tar.xz \
&& tar -xJf /root/py36.tar.xz \
&& rm /root/py36.tar.xz \
&& cd /root/Python-3.6.12 \
&& ./configure \
&& ./configure --enable-optimizations \
&& make \
&& make install \
&& cd /root \
Expand All @@ -25,7 +25,7 @@ RUN set -xe \
RUN set -xe \
\
&& python3.6 -m pip install -U pip setuptools wheel \
&& python3.6 -m pip install -U dataclasses future ninja numpy pillow pyyaml requests six typing_extensions \
&& python3.6 -m pip install -U cffi dataclasses future ninja numpy pillow pyyaml requests six typing_extensions \
&& rm -rf /root/.cache/*

# COPY . .
Expand Down
6 changes: 3 additions & 3 deletions build/py37/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@ ENV DEBIAN_FRONTEND=noninteractive
RUN set -xe \
\
&& echo "cd /root" >> /root/.bashrc \
&& cd /root \
&& apt update \
&& apt install -y bash build-essential ca-certificates cmake curl git libffi-dev libssl-dev nano screen wget xz-utils zlib1g-dev
&& apt install -y bash build-essential ca-certificates cmake curl git libffi-dev libssl-dev nano wget xz-utils zlib1g-dev

RUN set -xe \
\
&& cd /root \
&& wget -q https://www.python.org/ftp/python/3.7.9/Python-3.7.9.tar.xz -O /root/py37.tar.xz \
&& tar -xJf /root/py37.tar.xz \
&& rm /root/py37.tar.xz \
&& cd /root/Python-3.7.9 \
&& ./configure \
&& ./configure --enable-optimizations \
&& make \
&& make install \
&& cd /root \
Expand Down
8 changes: 5 additions & 3 deletions build/py38/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@ ENV DEBIAN_FRONTEND=noninteractive
RUN set -xe \
\
&& echo "cd /root" >> /root/.bashrc \
&& cd /root \
&& apt update \
&& apt install -y bash build-essential ca-certificates cmake curl git libssl-dev nano python3-cffi python3-dev python3-future python3-numpy python3-pil python3-pip python3-requests python3-setuptools python3-six python3-wheel python3-yaml screen xz-utils wget zlib1g-dev
&& apt install -y bash build-essential ca-certificates cmake curl git libffi-dev libssl-dev nano wget xz-utils zlib1g-dev

RUN set -xe \
\
&& python3 -m pip install -U dataclasses ninja pip pyyaml typing_extensions \
&& cd /root \
&& apt install -y bash python3-cffi python3-dev python3-future python3-numpy python3-pil python3-pip python3-requests python3-setuptools python3-six python3-wheel python3-yaml \
&& python3 -m pip install -U pip setuptools wheel \
&& python3 -m pip install -U dataclasses ninja pyyaml typing_extensions \
&& rm -rf /root/.cache/*

# COPY . .
Expand Down
6 changes: 3 additions & 3 deletions build/py39/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@ ENV DEBIAN_FRONTEND=noninteractive
RUN set -xe \
\
&& echo "cd /root" >> /root/.bashrc \
&& cd /root \
&& apt update \
&& apt install -y bash build-essential ca-certificates cmake curl git libffi-dev libssl-dev nano screen wget xz-utils zlib1g-dev
&& apt install -y bash build-essential ca-certificates cmake curl git libffi-dev libssl-dev nano wget xz-utils zlib1g-dev

RUN set -xe \
\
&& cd /root \
&& wget -q https://www.python.org/ftp/python/3.9.1/Python-3.9.1.tar.xz -O /root/py39.tar.xz \
&& tar -xJf /root/py39.tar.xz \
&& rm /root/py39.tar.xz \
&& cd /root/Python-3.9.1 \
&& ./configure \
&& ./configure --enable-optimizations \
&& make \
&& make install \
&& cd /root \
Expand Down

0 comments on commit f893a0d

Please sign in to comment.