2021-01-27 16:51:57 +00:00
|
|
|
FROM golang:1.15 as build
|
2020-05-25 21:32:44 +00:00
|
|
|
|
|
|
|
RUN mkdir /app
|
|
|
|
WORKDIR /app
|
2020-08-05 16:13:18 +00:00
|
|
|
ARG VERSION
|
2020-05-25 21:32:44 +00:00
|
|
|
|
2021-04-18 08:35:10 +00:00
|
|
|
COPY . ./
|
2020-08-05 16:13:18 +00:00
|
|
|
RUN go build -ldflags=-s -ldflags=-w -ldflags=-X=github.com/miguelmota/cointop/cointop.version=$VERSION -o main .
|
2021-04-18 08:36:13 +00:00
|
|
|
ADD https://github.com/cointop-sh/colors/archive/master.tar.gz ./
|
|
|
|
RUN tar zxf master.tar.gz --exclude images
|
2020-05-25 21:32:44 +00:00
|
|
|
|
2021-01-27 16:51:57 +00:00
|
|
|
FROM busybox:glibc
|
|
|
|
RUN mkdir -p /etc/ssl
|
|
|
|
COPY --from=build /etc/ssl/certs/ /etc/ssl/certs
|
|
|
|
COPY --from=build /app/main /bin/cointop
|
2021-04-18 08:36:13 +00:00
|
|
|
COPY --from=build /app/colors-master /root/.config/cointop/colors
|
2021-04-18 08:34:20 +00:00
|
|
|
ENTRYPOINT ["/bin/cointop"]
|
2020-08-03 02:52:24 +00:00
|
|
|
CMD []
|