DanielleNguyen commited on
Commit
a477cf0
·
verified ·
1 Parent(s): 348ad2c

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -3
Dockerfile CHANGED
@@ -1,4 +1,4 @@
1
- FROM alpine:3.22.0
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 apk add --no-cache ca-certificates curl tar tzdata
 
 
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
- cp /usr/share/zoneinfo/${TZ} /etc/localtime && \
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