mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-27 12:23:35 +01:00
make pond/Dockerfile use build stages (#427)
This commit is contained in:
parent
3bfafa2f4c
commit
6ac299d472
|
@ -1,4 +1,4 @@
|
||||||
FROM debian:buster-slim
|
FROM debian:buster-slim as builder
|
||||||
LABEL maintainer "Jessie Frazelle <jess@linux.com>"
|
LABEL maintainer "Jessie Frazelle <jess@linux.com>"
|
||||||
|
|
||||||
ENV PATH /go/bin:/usr/local/go/bin:$PATH
|
ENV PATH /go/bin:/usr/local/go/bin:$PATH
|
||||||
|
@ -42,4 +42,6 @@ RUN useradd --create-home --home-dir $HOME pond \
|
||||||
WORKDIR $HOME
|
WORKDIR $HOME
|
||||||
USER pond
|
USER pond
|
||||||
|
|
||||||
|
COPY --from=builder /usr/bin/pond-client /usr/bin/pond-client
|
||||||
|
COPY --from=builder /usr/bin/pond-server /usr/bin/pond-server
|
||||||
CMD [ "pond-client", "-cli" ]
|
CMD [ "pond-client", "-cli" ]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user