Added Makefile mods, Dockerfile for demo
This commit is contained in:
parent
ded7f094e6
commit
1680db0961
|
@ -0,0 +1,15 @@
|
|||
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"]
|
Loading…
Reference in New Issue