Skip to content

Commit 6b1edb4

Browse files
committed
chore: clone the OSS git repos into the build-base image
1 parent 79d037d commit 6b1edb4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,16 @@ WORKDIR /out
3333
ADD https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-${TARGETARCH}.tar.gz .
3434
RUN tar xvf hugo_extended_${HUGO_VERSION}_linux-${TARGETARCH}.tar.gz
3535

36+
# git-src clones the OSS projects in order to include
37+
# code snippets into the docs.
38+
FROM base AS git-src-oss
39+
WORKDIR /git-src
40+
RUN git clone https://github.com/testcontainers/testcontainers-go.git
41+
3642
# build-base is the base stage used for building the site
3743
FROM base AS build-base
3844
WORKDIR /project
45+
COPY --from=git-src-oss /git-src /project/git-src
3946
COPY --from=hugo /out/hugo /bin/hugo
4047
COPY --from=npm /out/node_modules node_modules
4148
COPY . .

0 commit comments

Comments
 (0)