magnetico/Dockerfile.magneticod

22 lines
497 B
Docker
Raw Normal View History

2019-09-18 02:21:30 +02:00
FROM golang:1.13-alpine AS build
WORKDIR /magnetico
RUN apk add --no-cache build-base curl git
2018-08-27 10:15:01 +02:00
2019-05-19 02:27:10 +02:00
ADD ./Makefile /magnetico/
ADD ./pkg /magnetico/pkg
ADD ./go.mod /magnetico/go.mod
ADD ./cmd/magneticod /magnetico/cmd/magneticod
2018-08-27 10:15:01 +02:00
RUN make magneticod
FROM alpine:latest
2019-05-19 02:27:10 +02:00
LABEL maintainer="bora@boramalper.org"
WORKDIR /
2019-09-18 02:21:30 +02:00
VOLUME /root/.local/share/magneticod
VOLUME /root/.config/magneticod
2018-08-27 10:15:01 +02:00
2019-09-18 02:21:30 +02:00
COPY --from=build /go/bin/magneticod /magneticod
2019-05-19 02:27:10 +02:00
ENTRYPOINT ["/magneticod"]