2022-08-05 01:18:35 +02:00
|
|
|
FROM golang:1.19-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
|
2018-11-25 18:46:49 +01:00
|
|
|
RUN apk add --no-cache build-base curl git
|
2022-08-05 01:18:35 +02:00
|
|
|
RUN go install -a -v github.com/go-bindata/go-bindata/...@latest
|
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
|
2022-08-05 01:18:35 +02:00
|
|
|
ADD ./go.sum /magnetico/go.sum
|
2019-05-19 02:27:10 +02:00
|
|
|
ADD ./cmd/magneticow /magnetico/cmd/magneticow
|
|
|
|
|
2018-08-27 10:15:01 +02:00
|
|
|
RUN make magneticow
|
|
|
|
|
2018-11-25 17:51:57 +01:00
|
|
|
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
|
2018-11-25 17:51:57 +01:00
|
|
|
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
|
|
|
|
2020-02-26 20:30:38 +01: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"]
|