Skip to content

Commit

Permalink
chore: dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverbaehler committed May 4, 2023
1 parent 8dbcbd6 commit 9514ea1
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions transformers/substitution/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,7 @@
FROM golang:1.19-alpine as builder
ENV CGO_ENABLED=0
WORKDIR /go/src/
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN go build -ldflags '-w -s' -v -o /usr/local/bin/function ./

FROM ubuntu:latest as user
RUN useradd -u 10001 scratchuser

FROM scratch
COPY --from=builder /usr/local/bin/function /substition
COPY substition /substition
COPY --from=user /etc/passwd /etc/passwd
ENTRYPOINT ["/substition"]

0 comments on commit 9514ea1

Please sign in to comment.