docker-wireguard/Dockerfile.armhf

67 lines
1.6 KiB
Docker
Raw Normal View History

2022-10-04 13:58:32 +00:00
FROM ghcr.io/linuxserver/baseimage-ubuntu:arm32v7-jammy
2020-04-08 17:32:43 +00:00
# set version label
ARG BUILD_DATE
ARG VERSION
ARG WIREGUARD_RELEASE
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="aptalca"
ENV DEBIAN_FRONTEND="noninteractive"
RUN \
echo "**** install dependencies ****" && \
apt-get update && \
2020-08-06 18:06:57 +00:00
apt-get install -y --no-install-recommends \
2020-04-28 17:36:57 +00:00
bc \
build-essential \
2020-04-08 17:32:43 +00:00
curl \
2020-08-06 18:06:57 +00:00
dkms \
git \
2020-04-08 17:32:43 +00:00
gnupg \
ifupdown \
iproute2 \
iptables \
iputils-ping \
jq \
2020-04-08 17:32:43 +00:00
libc6 \
libelf-dev \
net-tools \
2022-10-04 13:58:32 +00:00
netcat \
2020-08-06 18:06:57 +00:00
openresolv \
2020-04-08 17:32:43 +00:00
perl \
pkg-config \
2020-04-08 17:32:43 +00:00
qrencode && \
echo "**** install wireguard-tools ****" && \
if [ -z ${WIREGUARD_RELEASE+x} ]; then \
WIREGUARD_RELEASE=$(curl -sX GET "https://api.github.com/repos/WireGuard/wireguard-tools/tags" \
| jq -r .[0].name); \
fi && \
cd /app && \
git clone https://git.zx2c4.com/wireguard-linux-compat && \
git clone https://git.zx2c4.com/wireguard-tools && \
cd wireguard-tools && \
git checkout "${WIREGUARD_RELEASE}" && \
make -C src -j$(nproc) && \
make -C src install && \
2020-04-08 17:32:43 +00:00
echo "**** install CoreDNS ****" && \
COREDNS_VERSION=$(curl -sX GET "https://api.github.com/repos/coredns/coredns/releases/latest" \
| awk '/tag_name/{print $4;exit}' FS='[""]' | awk '{print substr($1,2); }') && \
curl -o \
/tmp/coredns.tar.gz -L \
2020-06-21 16:47:38 +00:00
"https://github.com/coredns/coredns/releases/download/v${COREDNS_VERSION}/coredns_${COREDNS_VERSION}_linux_arm.tgz" && \
2020-04-08 17:32:43 +00:00
tar xf \
/tmp/coredns.tar.gz -C \
/app && \
echo "**** clean up ****" && \
rm -rf \
/tmp/* \
/var/lib/apt/lists/* \
/var/tmp/*
# add local files
COPY /root /
# ports and volumes
EXPOSE 51820/udp