Skip to content

Commit

Permalink
Move old Dockerfile to Dockerfile-arm64v8
Browse files Browse the repository at this point in the history
  • Loading branch information
jcardarelli committed Aug 19, 2024
1 parent 6b48cad commit 03c5289
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM arm64v8/golang:1.21 AS build
FROM golang:1.21 AS build
WORKDIR /app
RUN mkdir cmd database types vendor
COPY cmd/ ./cmd/
Expand Down
15 changes: 15 additions & 0 deletions Dockerfile-arm64v8
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"]

0 comments on commit 03c5289

Please sign in to comment.