Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
smcli
tails
.git
.github

19 changes: 19 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
FROM debian:bullseye as build-stage
ARG GOLANG_INSTALL=https://go.dev/dl/go1.20.6.linux-amd64.tar.gz

RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y build-essential libudev-dev ca-certificates curl

RUN update-ca-certificates

RUN curl -L ${GOLANG_INSTALL} | tar -C /usr/local -xzf -
ENV PATH="${PATH}:/usr/local/go/bin"

RUN adduser --disabled-password --gecos '' spacemesh
COPY --chown=spacemesh . /home/spacemesh
USER spacemesh
WORKDIR /home/spacemesh

RUN make build

FROM scratch as export-stage
COPY --from=build-stage /home/spacemesh/smcli /
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -164,5 +164,9 @@ staticcheck: $(UNZIP_DEST)
LD_LIBRARY_PATH=$(REAL_DEST) \
staticcheck ./...

.PHONY: tails
tails:
docker build -o tails .

clean:
rm -rf $(UNZIP_DEST)