forked from gomods/athens
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Build multi-arch image via goreleaser
* push to ghcr
- Loading branch information
Showing
3 changed files
with
100 additions
and
23 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
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Use by goreleaser | ||
ARG GOLANG_VERSION=1.18 | ||
ARG ALPINE_VERSION=3.15 | ||
|
||
FROM golang:${GOLANG_VERSION}-alpine AS builder | ||
|
||
FROM alpine:${ALPINE_VERSION} | ||
|
||
ENV GO111MODULE=on | ||
COPY --from=builder /usr/local/go/bin/go /bin/go | ||
|
||
COPY athens /bin/athens-proxy | ||
COPY config.dev.toml /config/config.toml | ||
|
||
RUN apk add --no-cache --update git git-lfs mercurial openssh-client subversion procps fossil tini && \ | ||
mkdir -p /usr/local/go && \ | ||
chmod 644 /config/config.toml | ||
|
||
# Add tini, see https://github.com/gomods/athens/issues/1155 for details. | ||
EXPOSE 3000 | ||
|
||
ENTRYPOINT [ "/sbin/tini", "--" ] | ||
|
||
CMD ["athens-proxy", "-config_file=/config/config.toml"] |