Reduced image size of Docker image (#7675)

This commit is contained in:
François Capon
2024-11-08 14:13:21 +01:00
committed by GitHub
parent 117e35d1a5
commit 9ec2ee094c

View File

@@ -18,7 +18,7 @@
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.
FROM python:3.11-alpine3.19
FROM python:3.11-alpine3.19 AS build
# Build-time flags
ARG WITH_PLUGINS=true
@@ -91,6 +91,12 @@ RUN \
&& \
git config --system --add safe.directory /site
# From empty image
FROM scratch
# Copy all from build
COPY --from=build / /
# Set working directory
WORKDIR /docs