This repository has been archived on 2022-10-02. You can view files and clone it, but cannot push or open issues or pull requests.
dcbot-old/Dockerfile

18 lines
335 B
Docker
Raw Normal View History

2020-05-30 11:24:42 +00:00
FROM golang:alpine
RUN apk add git
2020-05-30 11:24:42 +00:00
ENV MODE=production
ENV GOPRIVATE=github.com/tribalwarshelp
COPY ./.netrc /root/.netrc
RUN chmod 600 /root/.netrc
2020-05-30 11:24:42 +00:00
WORKDIR /go/src/app
COPY . .
RUN go build -o main .
ADD https://github.com/ufoscout/docker-compose-wait/releases/download/2.2.1/wait ./wait
RUN chmod +x ./wait
CMD ./wait && ./main