Commit e794eeae authored by pfandzelter's avatar pfandzelter
Browse files

Merge branch 'tp/fix-docker-image' into 'master'

Tp/fix docker image

See merge request !30
parents f2f641b5 6d8b9bda
\ No newline at end of file
\ No newline at end of file
# building the binary
FROM golang:alpine as golang
FROM golang:1.13-alpine as golang
MAINTAINER Tobias Pfandzelter <>
RUN apk add --no-cache libzmq-static czmq-dev libsodium-static build-base util-linux-dev
RUN mkdir /lib64 && ln -s /lib/ /lib64/
WORKDIR /go/src/
COPY . .
# Static build required so that we can safely copy the binary over.
RUN CGO_ENABLED=0 GOOS=linux go install -a -tags netgo -ldflags '-w' ./cmd/frednode/main.go
RUN touch ./cmd/frednode/
RUN go install -a -ldflags '-linkmode external -w -s -extldflags "-static -luuid" ' ./cmd/frednode/
# actual Docker image
FROM scratch
COPY --from=golang /go/bin/main frednode
COPY --from=golang /go/bin/frednode frednode
package main
import "C"
import (
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment