mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-13 15:09:42 +00:00
* optimize dockerfile to not invalidate layers * added binance websocket * added binance websocket types * loading exchanges from the codebase * Setting Binance websocket to Yes * revert import naming * binance websocket was missing * added gorilla websocket
17 lines
556 B
Docker
17 lines
556 B
Docker
FROM golang:1.9.4 as build
|
|
RUN curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
|
|
WORKDIR /go/src/gocryptotrader
|
|
COPY Gopkg.* ./
|
|
RUN dep ensure -vendor-only
|
|
COPY . .
|
|
RUN mv -vn config_example.json config.json \
|
|
&& GOARCH=386 GOOS=linux CGO_ENABLED=0 go install -v \
|
|
&& mv /go/bin/linux_386 /go/bin/gocryptotrader
|
|
|
|
FROM alpine:latest
|
|
RUN apk update && apk add --no-cache ca-certificates
|
|
COPY --from=build /go/bin/gocryptotrader /app/
|
|
COPY --from=build /go/src/gocryptotrader/config.json /app/
|
|
EXPOSE 9050
|
|
CMD ["/app/gocryptotrader"]
|