This repository has been archived by the owner on Mar 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #63 from njhale/bump-go
Bump to go 1.20
- Loading branch information
Showing
4 changed files
with
6 additions
and
6 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,17 +1,17 @@ | ||
FROM golang:1.19 AS build | ||
FROM ghcr.io/acorn-io/images-mirror/golang:1.20-alpine AS build | ||
COPY / /src | ||
WORKDIR /src | ||
ARG TAG="v0.0.0-dev" | ||
ENV CGO_ENABLED=0 | ||
RUN --mount=type=cache,target=/go/pkg --mount=type=cache,target=/root/.cache/go-build \ | ||
go build -o bin/acorn-dns -ldflags "-s -w -X 'github.com/acorn-io/acorn-dns/pkg/version.Tag=${TAG}'" . | ||
|
||
FROM alpine:3.16.2 AS base | ||
FROM ghcr.io/acorn-io/images-mirror/alpine:3.16.2 AS base | ||
RUN apk add --no-cache ca-certificates | ||
RUN adduser -D acorn | ||
# USER acorn commented out so that i can easily get into the container and do stuff to it | ||
ENTRYPOINT ["/usr/local/bin/acorn-dns"] | ||
CMD ["api-server"] | ||
|
||
FROM base | ||
COPY --from=build /src/bin/acorn-dns /usr/local/bin/acorn-dns | ||
COPY --from=build /src/bin/acorn-dns /usr/local/bin/acorn-dns |
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,6 +1,6 @@ | ||
module github.com/acorn-io/acorn-dns | ||
|
||
go 1.19 | ||
go 1.20 | ||
|
||
require ( | ||
github.com/aws/aws-sdk-go v1.44.114 | ||
|