2
0
mirror of https://github.com/miguelmota/cointop synced 2024-11-10 13:10:26 +00:00
cointop/Dockerfile

18 lines
485 B
Docker
Raw Normal View History

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
ADD . /app/
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 .
RUN git clone https://github.com/cointop-sh/colors && rm -Rf colors/.git*
2020-05-25 21:32:44 +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
COPY --from=build /app/colors /root/.config/cointop/colors
2020-08-03 02:52:24 +00:00
ENTRYPOINT cointop
CMD []