mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-11-23 23:21:00 +01:00
Reduced image size of Docker image (#7675)
This commit is contained in:
parent
117e35d1a5
commit
9ec2ee094c
@ -18,7 +18,7 @@
|
|||||||
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
||||||
# IN THE SOFTWARE.
|
# IN THE SOFTWARE.
|
||||||
|
|
||||||
FROM python:3.11-alpine3.19
|
FROM python:3.11-alpine3.19 AS build
|
||||||
|
|
||||||
# Build-time flags
|
# Build-time flags
|
||||||
ARG WITH_PLUGINS=true
|
ARG WITH_PLUGINS=true
|
||||||
@ -91,6 +91,12 @@ RUN \
|
|||||||
&& \
|
&& \
|
||||||
git config --system --add safe.directory /site
|
git config --system --add safe.directory /site
|
||||||
|
|
||||||
|
# From empty image
|
||||||
|
FROM scratch
|
||||||
|
|
||||||
|
# Copy all from build
|
||||||
|
COPY --from=build / /
|
||||||
|
|
||||||
# Set working directory
|
# Set working directory
|
||||||
WORKDIR /docs
|
WORKDIR /docs
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user