-
Notifications
You must be signed in to change notification settings - Fork 8
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 #8 from OldTyT/feature/build_arm
Added build arm docker image
- Loading branch information
Showing
6 changed files
with
147 additions
and
7 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
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,18 @@ | ||
FROM arm32v6/golang:1.21.3-alpine3.18 AS builder | ||
|
||
WORKDIR $GOPATH/frigate-telegram | ||
COPY . $GOPATH/frigate-telegram | ||
|
||
RUN apk --no-cache add binutils && \ | ||
go build . && \ | ||
strip frigate-telegram | ||
|
||
FROM arm32v6/alpine:3.18 | ||
|
||
RUN apk --no-cache add tzdata | ||
|
||
COPY --from=builder /go/frigate-telegram/frigate-telegram /frigate-telegram | ||
|
||
USER 1000 | ||
|
||
ENTRYPOINT ["/frigate-telegram"] |
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,18 @@ | ||
FROM arm32v7/golang:1.21.3-alpine3.18 AS builder | ||
|
||
WORKDIR $GOPATH/frigate-telegram | ||
COPY . $GOPATH/frigate-telegram | ||
|
||
RUN apk --no-cache add binutils && \ | ||
go build . && \ | ||
strip frigate-telegram | ||
|
||
FROM arm32v7/alpine:3.18 | ||
|
||
RUN apk --no-cache add tzdata | ||
|
||
COPY --from=builder /go/frigate-telegram/frigate-telegram /frigate-telegram | ||
|
||
USER 1000 | ||
|
||
ENTRYPOINT ["/frigate-telegram"] |
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,18 @@ | ||
FROM arm64v8/golang:1.21.3-alpine3.18 AS builder | ||
|
||
WORKDIR $GOPATH/frigate-telegram | ||
COPY . $GOPATH/frigate-telegram | ||
|
||
RUN apk --no-cache add binutils && \ | ||
go build . && \ | ||
strip frigate-telegram | ||
|
||
FROM arm64v8/alpine:3.18 | ||
|
||
RUN apk --no-cache add tzdata | ||
|
||
COPY --from=builder /go/frigate-telegram/frigate-telegram /frigate-telegram | ||
|
||
USER 1000 | ||
|
||
ENTRYPOINT ["/frigate-telegram"] |