nws/cmd/exit/Dockerfile
2024-07-22 23:00:21 +02:00

17 lines
298 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 exit cmd/exit/*.go
#building finished. Now extracting single bin in second stage.
FROM alpine
COPY --from=builder /build/exit /app/
WORKDIR /app
CMD ["./exit"]