soiz1 commited on
Commit
8003ebb
·
verified ·
1 Parent(s): 2aacea7

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +13 -1
Dockerfile CHANGED
@@ -6,7 +6,19 @@ WORKDIR /app
6
 
7
  # ホストのファイルをコンテナにコピー
8
  COPY . .
9
- RUN apt-get update && apt-get install -y python3 python3-pip default-jre python2 python2-pip
 
 
 
 
 
 
 
 
 
 
 
 
10
  RUN apt-get update && \
11
  apt-get install -y git-lfs && \
12
  git lfs install
 
6
 
7
  # ホストのファイルをコンテナにコピー
8
  COPY . .
9
+ # Python 2.7 を手動インストール
10
+ RUN apt-get update && \
11
+ apt-get install -y curl gcc make zlib1g-dev libssl-dev libffi-dev && \
12
+ curl -O https://www.python.org/ftp/python/2.7.18/Python-2.7.18.tgz && \
13
+ tar xzf Python-2.7.18.tgz && \
14
+ cd Python-2.7.18 && \
15
+ ./configure --prefix=/usr/local && \
16
+ make && \
17
+ make install && \
18
+ ln -s /usr/local/bin/python2.7 /usr/bin/python2 && \
19
+ cd .. && rm -rf Python-2.7.18 Python-2.7.18.tgz
20
+
21
+ RUN apt-get update && apt-get install -y python3 python3-pip default-jre
22
  RUN apt-get update && \
23
  apt-get install -y git-lfs && \
24
  git lfs install