GPTfree api
commited on
Update Dockerfile
Browse files- Dockerfile +2 -3
Dockerfile
CHANGED
@@ -23,9 +23,6 @@ RUN mkdir -p /sdk && \
|
|
23 |
"platforms;android-33" \
|
24 |
"build-tools;33.0.2"
|
25 |
|
26 |
-
# 環境変数
|
27 |
-
ENV PATH $PATH:/sdk/platform-tools:/sdk/build-tools/33.0.2
|
28 |
-
|
29 |
# Gradleのインストール
|
30 |
RUN wget -q "https://services.gradle.org/distributions/gradle-7.6-bin.zip" -O gradle.zip && \
|
31 |
unzip gradle.zip -d /opt/ && \
|
@@ -35,7 +32,9 @@ ENV PATH $PATH:/opt/gradle-7.6/bin
|
|
35 |
# NetCipherのクローンとビルド
|
36 |
RUN git clone https://github.com/guardianproject/NetCipher.git /netcipher && \
|
37 |
cd /netcipher && \
|
|
|
38 |
sed -i 's/gradle-4.4.1/gradle-7.6/g' gradle/wrapper/gradle-wrapper.properties && \
|
|
|
39 |
./gradlew build && \
|
40 |
mkdir -p /app/app/libs && \
|
41 |
cp /netcipher/netcipher/build/libs/netcipher.jar /app/app/libs/
|
|
|
23 |
"platforms;android-33" \
|
24 |
"build-tools;33.0.2"
|
25 |
|
|
|
|
|
|
|
26 |
# Gradleのインストール
|
27 |
RUN wget -q "https://services.gradle.org/distributions/gradle-7.6-bin.zip" -O gradle.zip && \
|
28 |
unzip gradle.zip -d /opt/ && \
|
|
|
32 |
# NetCipherのクローンとビルド
|
33 |
RUN git clone https://github.com/guardianproject/NetCipher.git /netcipher && \
|
34 |
cd /netcipher && \
|
35 |
+
# gradle-wrapper.propertiesの修正
|
36 |
sed -i 's/gradle-4.4.1/gradle-7.6/g' gradle/wrapper/gradle-wrapper.properties && \
|
37 |
+
sed -i 's|distributionSha256Sum=.*|distributionSha256Sum=7ba68c54029790ab444b39d7e293d3236b2632631fb5f2e012bb28b4ff669e4b|' gradle/wrapper/gradle-wrapper.properties && \
|
38 |
./gradlew build && \
|
39 |
mkdir -p /app/app/libs && \
|
40 |
cp /netcipher/netcipher/build/libs/netcipher.jar /app/app/libs/
|