mirror of
https://github.com/sorenisanerd/gotty.git
synced 2024-11-24 13:04:24 +00:00
16 lines
275 B
Docker
16 lines
275 B
Docker
|
FROM golang:1.13.1
|
||
|
|
||
|
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"]
|