Skip to content

Commit

Permalink
chore: add Dcokerfile for layotto sidecar injector
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoxiang10086 committed Oct 8, 2023
1 parent a91aa6f commit f4caa73
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docker/layotto_injector/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM golang:1.18-alpine AS build-env

WORKDIR /app

COPY . .

RUN go build -o injector cmd/layotto_injector/main.go

FROM alpine:latest
RUN apk --no-cache add ca-certificates
COPY --from=build-env /app/injector .
EXPOSE 8443

0 comments on commit f4caa73

Please sign in to comment.