-
-
Notifications
You must be signed in to change notification settings - Fork 363
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a5728e9
commit f9ea2d7
Showing
4 changed files
with
8 additions
and
323 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
FROM alpine:3.20 | ||
FROM golang:1.22.5-alpine3.20 AS builder | ||
|
||
WORKDIR /app | ||
COPY . /app | ||
RUN CGO_ENABLED=0 go build . | ||
|
||
ARG TARGETOS | ||
ARG TARGETARCH | ||
ARG TARGETVARIANT | ||
FROM alpine:3.20 | ||
|
||
WORKDIR /app | ||
COPY build/glance-$TARGETOS-$TARGETARCH${TARGETVARIANT} /app/glance | ||
COPY --from=builder /app/glance . | ||
|
||
EXPOSE 8080/tcp | ||
ENTRYPOINT ["/app/glance"] |
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.