Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +5 -3
Dockerfile
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
FROM
|
| 2 |
|
| 3 |
ARG CLIPROXYAPI_REPO=router-for-me/CLIProxyAPI
|
| 4 |
|
|
@@ -7,7 +7,9 @@ ENV APP_HOME=/opt/cli-proxy-api \
|
|
| 7 |
HOME=/data \
|
| 8 |
TZ=Asia/Shanghai
|
| 9 |
|
| 10 |
-
RUN
|
|
|
|
|
|
|
| 11 |
|
| 12 |
RUN mkdir -p "$APP_HOME" "$DATA_DIR"
|
| 13 |
|
|
@@ -32,7 +34,7 @@ RUN set -eux; \
|
|
| 32 |
COPY entrypoint.sh /entrypoint.sh
|
| 33 |
|
| 34 |
RUN chmod +x /entrypoint.sh && \
|
| 35 |
-
|
| 36 |
echo "${TZ}" > /etc/timezone
|
| 37 |
|
| 38 |
WORKDIR /data
|
|
|
|
| 1 |
+
FROM debian:bookworm-slim
|
| 2 |
|
| 3 |
ARG CLIPROXYAPI_REPO=router-for-me/CLIProxyAPI
|
| 4 |
|
|
|
|
| 7 |
HOME=/data \
|
| 8 |
TZ=Asia/Shanghai
|
| 9 |
|
| 10 |
+
RUN apt-get update && \
|
| 11 |
+
apt-get install -y --no-install-recommends ca-certificates curl tar tzdata && \
|
| 12 |
+
rm -rf /var/lib/apt/lists/*
|
| 13 |
|
| 14 |
RUN mkdir -p "$APP_HOME" "$DATA_DIR"
|
| 15 |
|
|
|
|
| 34 |
COPY entrypoint.sh /entrypoint.sh
|
| 35 |
|
| 36 |
RUN chmod +x /entrypoint.sh && \
|
| 37 |
+
ln -sf /usr/share/zoneinfo/${TZ} /etc/localtime && \
|
| 38 |
echo "${TZ}" > /etc/timezone
|
| 39 |
|
| 40 |
WORKDIR /data
|