Skip to content

Commit

Permalink
atualiza openfortivpn para o commit c49663d2 para compatibilizar com …
Browse files Browse the repository at this point in the history
…mudança no protocolo do fortigate
  • Loading branch information
fabianonunes committed Sep 9, 2024
1 parent 804bced commit edff08d
Showing 1 changed file with 28 additions and 1 deletion.
29 changes: 28 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,30 @@
FROM debian:bullseye AS openfortivpn

ARG VERSION=c49663d2
ARG URL=https://github.com/adrienverge/openfortivpn/archive/

RUN set -ex; \
apt-get update; \
apt-get install -y --no-install-recommends \
autoconf \
automake \
ca-certificates \
gcc \
libc6-dev \
libssl-dev \
make \
patch \
pkg-config \
wget; \
mkdir openfortivpn; \
cd openfortivpn; \
wget "$URL/$VERSION.tar.gz"; \
tar -xzf "$VERSION.tar.gz" \
--strip-components 1; \
./autogen.sh; \
./configure --prefix=""; \
make;

FROM golang:bullseye AS builder

WORKDIR /app
Expand All @@ -12,7 +39,6 @@ RUN set -ex; \
ca-certificates \
libengine-pkcs11-openssl \
nano \
openfortivpn \
openssl \
pcscd \
unzip \
Expand All @@ -36,6 +62,7 @@ RUN set -ex; \
echo "enable-in:" > /etc/pkcs11/modules/p11-kit-trust.module;

COPY --from=builder /app/vpnconfig /usr/bin/vpnconfig
COPY --from=openfortivpn "/openfortivpn/openfortivpn" /usr/bin/openfortivpn

ENTRYPOINT ["/entrypoint.sh"]
CMD ["start"]

0 comments on commit edff08d

Please sign in to comment.