mirror of
https://github.com/skeeto/endlessh.git
synced 2024-11-21 21:23:07 +01:00
Make final docker image smaller
This commit is contained in:
parent
94cf07e8ba
commit
4ffc65b3eb
21
Dockerfile
21
Dockerfile
@ -1,8 +1,15 @@
|
||||
FROM gliderlabs/alpine:3.4
|
||||
RUN \
|
||||
apk add --no-cache make gcc git libc-dev && \
|
||||
git clone https://github.com/skeeto/endlessh && \
|
||||
cd endlessh && \
|
||||
make
|
||||
FROM alpine:3.9 as builder
|
||||
RUN apk add --no-cache build-base
|
||||
ADD endlessh.c Makefile /
|
||||
RUN make
|
||||
|
||||
|
||||
FROM alpine:3.9
|
||||
|
||||
COPY --from=builder /endlessh /
|
||||
|
||||
EXPOSE 2222/tcp
|
||||
ENTRYPOINT /endlessh/endlessh
|
||||
|
||||
ENTRYPOINT ["/endlessh"]
|
||||
|
||||
CMD ["-v"]
|
||||
|
Loading…
Reference in New Issue
Block a user