update dockerfile
All checks were successful
Build and Publish Docker Image / build (push) Successful in 17s
All checks were successful
Build and Publish Docker Image / build (push) Successful in 17s
This commit is contained in:
16
Dockerfile
16
Dockerfile
@@ -1,8 +1,20 @@
|
|||||||
# Stage 1
|
# Stage 1
|
||||||
FROM alpine:latest AS build
|
FROM alpine:latest AS base
|
||||||
|
|
||||||
|
FROM base AS hugo
|
||||||
# Install the Hugo go app.
|
# Install the Hugo go app.
|
||||||
RUN apk add --update hugo git
|
RUN apk add --update curl
|
||||||
|
|
||||||
|
ARG TARGETARCH
|
||||||
|
ARG HUGO_VERSION=0.161.1
|
||||||
|
RUN wget -O "hugo.tar.gz" "https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-${TARGETARCH}.tar.gz"
|
||||||
|
RUN tar -xf "hugo.tar.gz" hugo -C /usr/bin
|
||||||
|
|
||||||
|
FROM base AS build
|
||||||
|
|
||||||
|
COPY --from=hugo /usr/bin/hugo /bin/hugo
|
||||||
|
|
||||||
|
RUN apk add --update git libc6-compat libstdc++
|
||||||
|
|
||||||
WORKDIR /opt/HugoApp
|
WORKDIR /opt/HugoApp
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user