LoginSignup
1
1

More than 3 years have passed since last update.

Ubuntu16.04上でのpython3.7環境をdockerで構築する

Last updated at Posted at 2021-02-12

はじめに

ちょっと手こずったのでメモとして残しておきます。
間違っている部分や、もっと良い方法があればぜひ教えていただきたいです。

Docker file

以下のDocker fileで構築。

FROM ubuntu:16.04
RUN apt-get update
RUN apt update
RUN apt install -y software-properties-common
RUN add-apt-repository ppa:deadsnakes/ppa
RUN apt update
RUN apt install -y python3.7
RUN apt-get install -y python3-pip
RUN apt install git -y
RUN python3.7 -m pip install --upgrade pip
RUN python3.7 -m pip install numpy

参考

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1