Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +7 -2
Dockerfile
CHANGED
|
@@ -31,7 +31,12 @@ RUN case ${TARGETPLATFORM} in \
|
|
| 31 |
apt-get clean && \
|
| 32 |
apt-get autoremove -y && \
|
| 33 |
curl -LO https://github.com/ginuerzh/gost/releases/download/v${GOST_VERSION}/gost-linux-${ARCH}-${GOST_VERSION}.gz && \
|
| 34 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
mv gost-linux-${ARCH}-${GOST_VERSION} /usr/bin/gost && \
|
| 36 |
chmod +x /usr/bin/gost && \
|
| 37 |
chmod +x /entrypoint.sh && \
|
|
@@ -51,4 +56,4 @@ ENV WARP_SLEEP=2
|
|
| 51 |
HEALTHCHECK --interval=15s --timeout=5s --start-period=10s --retries=3 \
|
| 52 |
CMD /healthcheck/index.sh
|
| 53 |
|
| 54 |
-
ENTRYPOINT ["/entrypoint.sh"]
|
|
|
|
| 31 |
apt-get clean && \
|
| 32 |
apt-get autoremove -y && \
|
| 33 |
curl -LO https://github.com/ginuerzh/gost/releases/download/v${GOST_VERSION}/gost-linux-${ARCH}-${GOST_VERSION}.gz && \
|
| 34 |
+
if file gost-linux-${ARCH}-${GOST_VERSION}.gz | grep -q 'gzip compressed data'; then \
|
| 35 |
+
gunzip gost-linux-${ARCH}-${GOST_VERSION}.gz; \
|
| 36 |
+
else \
|
| 37 |
+
echo "Downloaded file is not a valid gzip file"; \
|
| 38 |
+
exit 1; \
|
| 39 |
+
fi && \
|
| 40 |
mv gost-linux-${ARCH}-${GOST_VERSION} /usr/bin/gost && \
|
| 41 |
chmod +x /usr/bin/gost && \
|
| 42 |
chmod +x /entrypoint.sh && \
|
|
|
|
| 56 |
HEALTHCHECK --interval=15s --timeout=5s --start-period=10s --retries=3 \
|
| 57 |
CMD /healthcheck/index.sh
|
| 58 |
|
| 59 |
+
ENTRYPOINT ["/entrypoint.sh"]
|