magnetico/Dockerfile.magneticow

27 lines
631 B
Docker
Raw Normal View History

2020-11-27 19:10:26 +01:00
FROM golang:1.15-alpine AS build
2019-09-18 02:21:30 +02:00
WORKDIR /magnetico
2019-05-19 02:27:10 +02:00
RUN export PATH=$PATH:/go/bin
RUN apk add --no-cache build-base curl git
2019-09-18 02:21:30 +02:00
RUN go get -u github.com/kevinburke/go-bindata/...
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/magneticow /magnetico/cmd/magneticow
2018-08-27 10:15:01 +02:00
RUN make magneticow
FROM alpine:latest
2019-05-19 02:27:10 +02:00
LABEL maintainer="bora@boramalper.org"
2019-09-18 02:21:30 +02:00
EXPOSE 8080
WORKDIR /
2019-09-18 02:21:30 +02:00
VOLUME /root/.local/share/magneticod
2020-02-21 12:39:35 +01:00
VOLUME /root/.config/magneticow
2019-05-19 02:27:10 +02:00
RUN apk add --no-cache libgcc libstdc++
2019-09-18 02:21:30 +02:00
COPY --from=build /go/bin/magneticow /magneticow
2018-08-27 10:15:01 +02:00
2019-09-18 02:21:30 +02:00
ENTRYPOINT ["/magneticow"]