Skip to content

Commit

Permalink
docker file
Browse files Browse the repository at this point in the history
  • Loading branch information
hard-nett committed Mar 8, 2024
1 parent b69fac5 commit baec560
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
# docker build . -t terpnetwork/terpd:latest
# docker run --rm -it terpnetwork/terpd:latest /bin/sh
ARG GO_VERSION="1.21"
ARG RUNNER_IMAGE="gcr.io/distroless/static"

FROM golang:${GO_VERSION}-alpine as builder
FROM golang:1.21-alpine AS go-builder
ARG arch=x86_64

# this comes from standard alpine nightly file
Expand Down Expand Up @@ -37,7 +34,7 @@ RUN echo "Ensuring binary is statically linked ..." \

# --------------------------------------------------------

FROM ${RUNNER_IMAGE}
FROM alpine:3.16

COPY --from=go-builder /code/build/terpd /usr/bin/terpd

Expand Down

0 comments on commit baec560

Please sign in to comment.