Update Dockerfile
Browse files- Dockerfile +18 -5
Dockerfile
CHANGED
|
@@ -1,20 +1,33 @@
|
|
| 1 |
-
FROM
|
| 2 |
|
| 3 |
ENV TZ=Asia/Shanghai
|
| 4 |
-
ENV PORT=
|
| 5 |
ENV RUNTIME_DIR=/tmp/runtime
|
| 6 |
ENV SUPERVISOR_CONF=/etc/supervisord.conf
|
| 7 |
ENV SUPERVISOR_CONF_TEMPLATE=/etc/supervisord.conf.template
|
| 8 |
ENV STOP_WAIT_SECS=60
|
| 9 |
|
| 10 |
-
RUN
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
&& ln -snf /usr/share/zoneinfo/$TZ /etc/localtime \
|
| 12 |
-
&& echo $TZ > /etc/timezone
|
|
|
|
| 13 |
|
| 14 |
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
|
| 15 |
COPY scripts/release-common.sh /usr/local/bin/release-common.sh
|
| 16 |
COPY scripts/update-loop.sh /usr/local/bin/update-loop.sh
|
| 17 |
COPY supervisord.conf /etc/supervisord.conf.template
|
| 18 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
|
| 20 |
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
|
|
|
|
|
|
| 1 |
+
FROM debian:bookworm-slim
|
| 2 |
|
| 3 |
ENV TZ=Asia/Shanghai
|
| 4 |
+
ENV PORT=7860
|
| 5 |
ENV RUNTIME_DIR=/tmp/runtime
|
| 6 |
ENV SUPERVISOR_CONF=/etc/supervisord.conf
|
| 7 |
ENV SUPERVISOR_CONF_TEMPLATE=/etc/supervisord.conf.template
|
| 8 |
ENV STOP_WAIT_SECS=60
|
| 9 |
|
| 10 |
+
RUN apt-get update \
|
| 11 |
+
&& DEBIAN_FRONTEND=noninteractive apt-get install -y \
|
| 12 |
+
--no-install-recommends \
|
| 13 |
+
ca-certificates \
|
| 14 |
+
curl \
|
| 15 |
+
libc6 \
|
| 16 |
+
supervisor \
|
| 17 |
+
tzdata \
|
| 18 |
&& ln -snf /usr/share/zoneinfo/$TZ /etc/localtime \
|
| 19 |
+
&& echo "$TZ" > /etc/timezone \
|
| 20 |
+
&& rm -rf /var/lib/apt/lists/*
|
| 21 |
|
| 22 |
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
|
| 23 |
COPY scripts/release-common.sh /usr/local/bin/release-common.sh
|
| 24 |
COPY scripts/update-loop.sh /usr/local/bin/update-loop.sh
|
| 25 |
COPY supervisord.conf /etc/supervisord.conf.template
|
| 26 |
+
|
| 27 |
+
RUN chmod +x \
|
| 28 |
+
/usr/local/bin/entrypoint.sh \
|
| 29 |
+
/usr/local/bin/release-common.sh \
|
| 30 |
+
/usr/local/bin/update-loop.sh
|
| 31 |
|
| 32 |
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
|
| 33 |
+
|