-
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.
Move old Dockerfile to Dockerfile-arm64v8
- Loading branch information
1 parent
6b48cad
commit 03c5289
Showing
2 changed files
with
16 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
FROM arm64v8/golang:1.21 AS build | ||
WORKDIR /app | ||
RUN mkdir cmd database types vendor | ||
COPY cmd/ ./cmd/ | ||
COPY database/ ./database/ | ||
COPY types/ ./types/ | ||
COPY vendor/ ./vendor/ | ||
COPY go.mod go.sum main.go ./ | ||
RUN CGO_ENABLED=1 go build -mod vendor -installsuffix cgo -o ./fancy | ||
|
||
FROM debian:12-slim | ||
WORKDIR /go | ||
COPY --from=build /app/fancy . | ||
ENTRYPOINT ["/go/fancy"] | ||
CMD ["restaurant"] |