mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-14 15:09:51 +00:00
* Bump CI versions * Specifically set go version as 1.17.x bumps it to 1.18 * Another * Adjust AppVeyor * Part 1 of linter issues * Part 2 * Fix various linters and improvements * Part 3 * Finishing touches * Tests and EqualFold * Fix nitterinos plus bonus requester jobs bump for exchanges with large number of tests * Fix nitterinos and bump golangci-lint timeout for AppVeyor * Address nits, ensure all books are returned on err due to syncer regression * Fix the wiggins * Fix duplication * Fix nitterinos
19 lines
682 B
Docker
19 lines
682 B
Docker
FROM golang:1.18 as build
|
|
WORKDIR /go/src/github.com/thrasher-corp/gocryptotrader
|
|
COPY . .
|
|
RUN GO111MODULE=on go mod vendor
|
|
RUN mv -vn config_example.json config.json \
|
|
&& GOARCH=386 GOOS=linux go build . \
|
|
&& GOARCH=386 GOOS=linux go build ./cmd/gctcli \
|
|
&& mv gocryptotrader /go/bin/gocryptotrader \
|
|
&& mv gctcli /go/bin/gctcli
|
|
|
|
FROM alpine:latest
|
|
VOLUME /root/.gocryptotrader
|
|
RUN apk update && apk add --no-cache ca-certificates bash
|
|
COPY --from=build /go/bin/gocryptotrader /app/
|
|
COPY --from=build /go/bin/gctcli /app/
|
|
COPY --from=build /go/src/github.com/thrasher-corp/gocryptotrader/config.json /root/.gocryptotrader/
|
|
EXPOSE 9050-9053
|
|
ENTRYPOINT [ "/app/gocryptotrader" ]
|