mirror of
https://mirror.suhoan.cn/https://github.com/EasyTier/EasyTier.git
synced 2025-12-12 20:57:26 +08:00
fix docker stop issue by using tini for graceful shutdown
This commit is contained in:
4
.github/workflows/Dockerfile
vendored
4
.github/workflows/Dockerfile
vendored
@@ -18,7 +18,7 @@ RUN mkdir -p /tmp/output; \
|
|||||||
|
|
||||||
FROM alpine:latest
|
FROM alpine:latest
|
||||||
|
|
||||||
RUN apk add --no-cache tzdata
|
RUN apk add --no-cache tzdata tini
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY --from=builder --chmod=755 /tmp/output/* /usr/local/bin
|
COPY --from=builder --chmod=755 /tmp/output/* /usr/local/bin
|
||||||
|
|
||||||
@@ -36,4 +36,4 @@ EXPOSE 11011/tcp
|
|||||||
# wss
|
# wss
|
||||||
EXPOSE 11012/tcp
|
EXPOSE 11012/tcp
|
||||||
|
|
||||||
ENTRYPOINT ["easytier-core"]
|
ENTRYPOINT ["/sbin/tini", "--", "easytier-core"]
|
||||||
|
|||||||
Reference in New Issue
Block a user