soiz1 commited on
Commit
c2b6061
·
verified ·
1 Parent(s): aab9b89

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -19
Dockerfile CHANGED
@@ -6,19 +6,7 @@ WORKDIR /app
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
@@ -31,11 +19,6 @@ RUN chmod -R 777 /app
31
  # 依存関係をインストール(競合を無視)
32
  RUN npm install --legacy-peer-deps
33
 
34
- RUN git clone https://github.com/google/closure-library.git node_modules/scratch-blocks/closure-library && \
35
- cd node_modules/scratch-blocks && \
36
- npm install && \
37
- npm run prepublish
38
-
39
  # OpenSSL の互換オプションを有効化
40
  ENV NODE_OPTIONS="--openssl-legacy-provider"
41
 
@@ -43,4 +26,4 @@ ENV NODE_OPTIONS="--openssl-legacy-provider"
43
  CMD ["/bin/sh", "-c", "npm start"]
44
 
45
  # コンテナがリッスンするポート
46
- EXPOSE 3000
 
6
 
7
  # ホストのファイルをコンテナにコピー
8
  COPY . .
9
+ RUN apt-get update && apt-get install -y python3 python3-pip
 
 
 
 
 
 
 
 
 
 
 
 
10
  RUN apt-get update && \
11
  apt-get install -y git-lfs && \
12
  git lfs install
 
19
  # 依存関係をインストール(競合を無視)
20
  RUN npm install --legacy-peer-deps
21
 
 
 
 
 
 
22
  # OpenSSL の互換オプションを有効化
23
  ENV NODE_OPTIONS="--openssl-legacy-provider"
24
 
 
26
  CMD ["/bin/sh", "-c", "npm start"]
27
 
28
  # コンテナがリッスンするポート
29
+ EXPOSE 3000