-
-
Notifications
You must be signed in to change notification settings - Fork 308
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed acme tls-alpn challenges (#244)
* Fixed acme tls-alpn challenges * Return connection to default handler if unable to read hello * Fix peek check * Simplify dockerfile and update dependencies * Cleanup build cache requirements
- Loading branch information
1 parent
b8ab4cf
commit c49a1ca
Showing
6 changed files
with
40 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
# syntax = docker/dockerfile:experimental | ||
FROM --platform=$BUILDPLATFORM golang:1.19-alpine as builder | ||
LABEL maintainer="Antonio Mika <[email protected]>" | ||
|
||
|
@@ -9,23 +8,14 @@ WORKDIR /app | |
RUN mkdir -p /emptydir | ||
RUN apk add --no-cache git ca-certificates | ||
|
||
RUN --mount=type=bind,target=/cache,from=antoniomika/sish-build-cache \ | ||
mkdir -p /go/pkg/ && cp -R /cache/mod/ /go/pkg/ || true && \ | ||
mkdir -p /root/.cache/ && cp -R /cache/go-build/ /root/.cache/ || true | ||
COPY go.* ./ | ||
|
||
COPY . . | ||
|
||
RUN go generate ./... | ||
RUN go test ./... | ||
|
||
FROM scratch as build-cache | ||
LABEL maintainer="Antonio Mika <[email protected]>" | ||
|
||
COPY --from=builder /go/pkg/mod /mod | ||
COPY --from=builder /root/.cache/go-build /go-build | ||
RUN go mod download | ||
|
||
FROM builder as build-image | ||
|
||
COPY . . | ||
|
||
ARG VERSION=dev | ||
ARG COMMIT=none | ||
ARG DATE=unknown | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters