Added local Dockerfile for lightwalletd until CI is setup

This commit is contained in:
Ben Wilson 2020-01-21 09:07:37 -05:00
parent 48188f2f43
commit 0911299b77
1 changed files with 29 additions and 0 deletions

29
lightwalletd/Dockerfile Normal file
View File

@ -0,0 +1,29 @@
FROM golang:1.13 AS lightwalletd_base
ARG LWD_TAG=v0.3.0
RUN git clone --depth 1 \
https://github.com/zcash/lightwalletd.git \
/go/src/github.com/zcash/lightwalletd
WORKDIR /go/src/github.com/zcash/lightwalletd
RUN git checkout ${LWD_TAG}
RUN make
FROM debian:10
COPY --from=lightwalletd_base \
/go/src/github.com/zcash/lightwalletd/server \
/usr/bin/server
ARG LWD_USER=lightwalletd
ARG LWD_UID=2002
RUN useradd --home-dir /srv/$LWD_USER \
--shell /bin/bash \
--create-home \
--uid $LWD_UID\
$LWD_USER
USER $LWD_USER
WORKDIR /srv/$LWD_USER
ENTRYPOINT ["server"]
CMD ["--help"]