-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Alpine base image * Update to v3 * chore: autopublish 2023-10-11T18:44:52Z * Copy rinetd.conf + use wg-start.sh * Auto update image when new packages are available * chore: autopublish 2023-10-11T19:40:13Z * Bump actions/checkout from 3 to 4 Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](actions/checkout@v3...v4) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * Bump docker/login-action from 2 to 3 Bumps [docker/login-action](https://github.com/docker/login-action) from 2 to 3. - [Release notes](https://github.com/docker/login-action/releases) - [Commits](docker/login-action@v2...v3) --- updated-dependencies: - dependency-name: docker/login-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * Bump docker/build-push-action from 4 to 5 Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 4 to 5. - [Release notes](https://github.com/docker/build-push-action/releases) - [Commits](docker/build-push-action@v4...v5) --- updated-dependencies: - dependency-name: docker/build-push-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * Bump docker/setup-buildx-action from 2.4.0 to 3.0.0 Bumps [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) from 2.4.0 to 3.0.0. - [Release notes](https://github.com/docker/setup-buildx-action/releases) - [Commits](docker/setup-buildx-action@15c905b...f95db51) --- updated-dependencies: - dependency-name: docker/setup-buildx-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * Bump docker/setup-qemu-action from 2 to 3 Bumps [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action) from 2 to 3. - [Release notes](https://github.com/docker/setup-qemu-action/releases) - [Commits](docker/setup-qemu-action@v2...v3) --- updated-dependencies: - dependency-name: docker/setup-qemu-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * Bump to v3 --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: eiqnepm <86803173+eiqnepm@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
- Loading branch information
1 parent
a18a756
commit 0967e52
Showing
8 changed files
with
57 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
3565a89d9e81 | ||
8ca4688f4f35 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
d4e0a60119a575b851d6b5e6268491f432d91089 refs/heads/main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,37 @@ | ||
# syntax=docker/dockerfile:1 | ||
|
||
FROM ubuntu:jammy | ||
FROM alpine:3.18 AS builder | ||
|
||
RUN set -ex \ | ||
&& apk upgrade --no-cache \ | ||
&& apk add --no-cache \ | ||
build-base \ | ||
git \ | ||
autoconf \ | ||
automake \ | ||
&& cd /tmp \ | ||
&& git clone --depth=1 "https://github.com/samhocevar/rinetd" \ | ||
&& cd rinetd \ | ||
&& ./bootstrap \ | ||
&& ./configure --prefix=/usr \ | ||
&& make -j $(nproc) \ | ||
&& strip rinetd | ||
|
||
FROM alpine:3.18 | ||
|
||
ARG TARGETPLATFORM | ||
|
||
LABEL org.opencontainers.image.source=https://github.com/DigitallyRefined/docker-wireguard-tunnel | ||
LABEL org.opencontainers.image.description="docker-wireguard-tunnel ${TARGETPLATFORM}" | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive | ||
ENV TERM=xterm | ||
|
||
RUN \ | ||
apt update && \ | ||
apt dist-upgrade -y && \ | ||
apt install -y --no-install-recommends \ | ||
ca-certificates \ | ||
curl \ | ||
ifupdown \ | ||
iproute2 \ | ||
iputils-ping \ | ||
openresolv \ | ||
rinetd \ | ||
wireguard-tools && \ | ||
apt autoremove -y && \ | ||
rm -rf \ | ||
/tmp/* \ | ||
/var/lib/apt/lists/* \ | ||
/var/tmp/* | ||
|
||
RUN cp /etc/rinetd.conf /etc/rinetd.conf.ori | ||
|
||
COPY wg-start.sh /usr/local/bin/wireguard | ||
|
||
CMD ["wireguard"] | ||
COPY --from=builder /tmp/rinetd/rinetd /usr/sbin/rinetd | ||
COPY --from=builder /tmp/rinetd/rinetd.conf /etc/rinetd.conf.ori | ||
|
||
RUN apk upgrade --no-cache | ||
RUN apk add --no-cache wireguard-tools | ||
|
||
COPY wg-start.sh /usr/sbin/wg-start.sh | ||
|
||
CMD ["/usr/sbin/wg-start.sh"] | ||
|
||
EXPOSE 51820/udp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters