Skip to content

Commit

Permalink
Revert "Fix image builds" (#24)
Browse files Browse the repository at this point in the history
Reverts #20

This isn't actually needed as goreleaser is handling the artifact
generation.
  • Loading branch information
tylerauerbeck authored Jun 23, 2023
1 parent 6afe8cc commit d3bcfe8
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,7 @@
FROM golang:1.20.5 AS builder
FROM gcr.io/distroless/static

COPY . /src
WORKDIR /src

# Build the binary
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o bin/location-api .

# Pass in name as --build-arg
FROM gcr.io/distroless/static:nonroot
# `nonroot` coming from distroless
USER 65532:65532

COPY --from=builder /src/bin/location-api /location-api
# Copy the binary that goreleaser built
COPY location-api /location-api

# Run the web service on container startup.
ENTRYPOINT ["/location-api"]
Expand Down

0 comments on commit d3bcfe8

Please sign in to comment.