GPTfree api
commited on
Update Dockerfile
Browse files- Dockerfile +8 -3
Dockerfile
CHANGED
@@ -27,19 +27,24 @@ RUN yes | $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --licenses && \
|
|
27 |
# 作業ディレクトリを設定
|
28 |
WORKDIR /app
|
29 |
|
30 |
-
#
|
31 |
RUN git clone https://github.com/martykan/webTube.git
|
32 |
|
33 |
# クローンしたディレクトリに移動
|
34 |
WORKDIR /app/webTube
|
35 |
|
|
|
|
|
|
|
|
|
36 |
# SDKパスを設定するためのlocal.propertiesを作成
|
37 |
RUN echo "sdk.dir=/sdk" > local.properties
|
38 |
|
39 |
-
# build.gradle
|
|
|
40 |
RUN sed -i '/repositories {/a \ maven { url "https://jitpack.io" }' app/build.gradle
|
41 |
|
42 |
-
#
|
43 |
RUN ./gradlew clean
|
44 |
RUN ./gradlew build --refresh-dependencies --stacktrace
|
45 |
|
|
|
27 |
# 作業ディレクトリを設定
|
28 |
WORKDIR /app
|
29 |
|
30 |
+
# プロジェクトをクローン
|
31 |
RUN git clone https://github.com/martykan/webTube.git
|
32 |
|
33 |
# クローンしたディレクトリに移動
|
34 |
WORKDIR /app/webTube
|
35 |
|
36 |
+
# 必要なNetCipherを統合
|
37 |
+
RUN git clone https://github.com/guardianproject/NetCipher.git && \
|
38 |
+
cp -r NetCipher/* app/libs/
|
39 |
+
|
40 |
# SDKパスを設定するためのlocal.propertiesを作成
|
41 |
RUN echo "sdk.dir=/sdk" > local.properties
|
42 |
|
43 |
+
# build.gradleの修正
|
44 |
+
RUN sed -i '/implementation.*netcipher/d' app/build.gradle
|
45 |
RUN sed -i '/repositories {/a \ maven { url "https://jitpack.io" }' app/build.gradle
|
46 |
|
47 |
+
# ビルド実行
|
48 |
RUN ./gradlew clean
|
49 |
RUN ./gradlew build --refresh-dependencies --stacktrace
|
50 |
|