nws/cmd/entry/Dockerfile
2024-07-25 19:52:50 +02:00

18 lines
303 B
Docker

FROM golang:1.21-alpine as builder
ADD . /build/
WORKDIR /build
RUN apk add --no-cache git bash openssh-client && \
go build -o entry cmd/entry/*.go
#building finished. Now extracting single bin in second stage.
FROM alpine
COPY --from=builder /build/entry /app/
WORKDIR /app
CMD ["./entry"]