Skip to content

Commit

Permalink
Reduced image size of Docker image (#7675)
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancoisCapon authored Nov 8, 2024
1 parent 117e35d commit 9ec2ee0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 9ec2ee0

Please sign in to comment.