[GH-ISSUE #239] Use Alpine Linux build docker image #219

Closed
opened 2026-03-02 07:44:51 +03:00 by kerem · 1 comment
Owner

Originally created by @peterwillcn on GitHub (Jun 1, 2021).
Original GitHub issue: https://github.com/hwdsl2/docker-ipsec-vpn-server/issues/239

Use Alpine Linux build docker image, It can reduce the size of the image.

Originally created by @peterwillcn on GitHub (Jun 1, 2021). Original GitHub issue: https://github.com/hwdsl2/docker-ipsec-vpn-server/issues/239 Use Alpine Linux build docker image, It can reduce the size of the image.
kerem closed this issue 2026-03-02 07:44:51 +03:00
Author
Owner

@hwdsl2 commented on GitHub (Jun 1, 2021):

@peterwillcn Hello! Thank you for your suggestion. Currently, this project uses the Debian Buster "slim" base image, and the built image has a compressed size of ~65MB on Docker Hub. The build process was optimized to keep the image size small.

Switching to using the Alpine Linux base image could further reduce image size as you mentioned. However, unfortunately I think Alpine Linux does not currently provide all the necessary packages required to build the latest Libreswan version (4.4 as of today) from source. As an alternative, Libreswan can be installed from the Alpine Linux repositories, but using that approach may require a major rewrite of this project, which I don't currently have time for.

<!-- gh-comment-id:852284298 --> @hwdsl2 commented on GitHub (Jun 1, 2021): @peterwillcn Hello! Thank you for your suggestion. Currently, this project uses the Debian Buster "slim" base image, and the built image has a compressed size of ~65MB on Docker Hub. The build process was optimized to keep the image size small. Switching to using the Alpine Linux base image could further reduce image size as you mentioned. However, unfortunately I think Alpine Linux does not currently provide all the necessary packages required to build the latest Libreswan version (4.4 as of today) from source. As an alternative, Libreswan can be installed from the Alpine Linux repositories, but using that approach may require a major rewrite of this project, which I don't currently have time for.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/docker-ipsec-vpn-server#219
No description provided.