mirror of
https://github.com/yudai/gotty.git
synced 2025-12-29 13:48:51 +01:00
Added Makefile mods, Dockerfile for demo
This commit is contained in:
parent
ded7f094e6
commit
1680db0961
2 changed files with 17 additions and 0 deletions
15
Dockerfile
Normal file
15
Dockerfile
Normal file
|
|
@ -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"]
|
||||
2
Makefile
2
Makefile
|
|
@ -78,3 +78,5 @@ shasums:
|
|||
|
||||
release:
|
||||
ghr -c ${GIT_COMMIT} --delete --prerelease -u yudai -r gotty pre-release ${OUTPUT_DIR}/dist
|
||||
clean:
|
||||
rm -fr gotty
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue