mirror of
https://github.com/ngoduykhanh/wireguard-ui.git
synced 2025-07-16 18:48:15 +03:00
Manage Wireguard restarts from docker container (#267)
This commit is contained in:
parent
be2ffba417
commit
de6ad05577
4 changed files with 45 additions and 4 deletions
|
@ -62,17 +62,17 @@ FROM alpine:3.16
|
|||
RUN addgroup -S wgui && \
|
||||
adduser -S -D -G wgui wgui
|
||||
|
||||
RUN apk --no-cache add ca-certificates
|
||||
RUN apk --no-cache add ca-certificates wireguard-tools jq
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN mkdir -p db
|
||||
|
||||
# Copy binary files
|
||||
COPY --from=builder --chown=wgui:wgui /build/wg-ui /app
|
||||
|
||||
COPY --from=builder --chown=wgui:wgui /build/wg-ui .
|
||||
RUN chmod +x wg-ui
|
||||
COPY init.sh .
|
||||
|
||||
EXPOSE 5000/tcp
|
||||
HEALTHCHECK CMD ["wget","--output-document=-","--quiet","--tries=1","http://127.0.0.1:5000/_health"]
|
||||
ENTRYPOINT ["./wg-ui"]
|
||||
ENTRYPOINT ["./init.sh"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue