diff --git a/.dockerignore b/.dockerignore index 692f946..8cb8cb0 100644 --- a/.dockerignore +++ b/.dockerignore @@ -3,7 +3,6 @@ .dockerignore Dockerfile LICENSE -.git .github .gitignore cache diff --git a/Dockerfile b/Dockerfile index 6f2a7af..ca3cd4f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,8 +2,9 @@ FROM golang:alpine AS build WORKDIR /app/ -RUN apk add --no-cache build-base libwebp-dev +RUN apk add --no-cache build-base libwebp-dev git +COPY .git .git COPY . . RUN --mount=type=cache,target=/root/.cache/go-build \