forked from mirrors/amnezia-wg-easy
add support amneziawg
This commit is contained in:
parent
200332df4b
commit
eb3c7b1760
5 changed files with 68 additions and 5 deletions
|
@ -13,7 +13,7 @@ RUN npm ci --omit=dev &&\
|
|||
|
||||
# Copy build result to a new image.
|
||||
# This saves a lot of disk space.
|
||||
FROM docker.io/library/node:20-alpine
|
||||
FROM amneziavpn/amnezia-wg:latest
|
||||
HEALTHCHECK CMD /usr/bin/timeout 5s /bin/sh -c "/usr/bin/wg show | /bin/grep -q interface || exit 1" --interval=1m --timeout=5s --retries=3
|
||||
COPY --from=build_node_modules /app /app
|
||||
|
||||
|
@ -35,8 +35,8 @@ RUN apk add --no-cache \
|
|||
dpkg \
|
||||
dumb-init \
|
||||
iptables \
|
||||
iptables-legacy \
|
||||
wireguard-tools
|
||||
nodejs \
|
||||
npm
|
||||
|
||||
# Use iptables-legacy
|
||||
RUN update-alternatives --install /sbin/iptables iptables /sbin/iptables-legacy 10 --slave /sbin/iptables-restore iptables-restore /sbin/iptables-legacy-restore --slave /sbin/iptables-save iptables-save /sbin/iptables-legacy-save
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue