Skip to content

Commit

Permalink
strongSwan: switch base image to debian-slim (#1033)
Browse files Browse the repository at this point in the history
  • Loading branch information
kunzese authored Dec 2, 2022
1 parent 0ab1912 commit f97239b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,13 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM alpine:latest
FROM debian:bullseye-slim

RUN set -xe \
&& apk add --no-cache strongswan bash sudo
ENV STRONGSWAN_VERSION=5.9

RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y sudo iptables procps strongswan=${STRONGSWAN_VERSION}* \
&& rm -rf /var/lib/apt/lists/*

COPY entrypoint.sh /entrypoint.sh
RUN chmod 0755 /entrypoint.sh
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ _stop_ipsec() {
echo "Shutting down strongSwan/ipsec..."
ipsec stop
}
trap _stop_ipsec SIGTERM
trap _stop_ipsec TERM

# Making the containter to work as a default gateway for LAN_NETWORKS
iptables -t nat -A POSTROUTING -s ${LAN_NETWORKS} -o ${VPN_DEVICE} -m policy --dir out --pol ipsec -j ACCEPT
Expand Down

0 comments on commit f97239b

Please sign in to comment.