gotty/Dockerfile

16 lines
273 B
Docker
Raw Normal View History

2021-07-07 09:02:52 +08:00
FROM golang:1.16
WORKDIR /gotty
COPY . /gotty
RUN CGO_ENABLED=0 make
FROM alpine:latest
RUN apk update && \
apk upgrade && \
apk --no-cache add ca-certificates && \
apk add bash
WORKDIR /root
COPY --from=0 /gotty/gotty /usr/bin/
CMD ["gotty", "-w", "bash"]