diff --git a/Dockerfile b/Dockerfile index 586045f..822391b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,14 +1,14 @@ -FROM alpine:latest +FROM golang:latest MAINTAINER sandy -ENV PATH /go/bin:/usr/local/go/bin:$PATH -ENV GOPATH /go -WORKDIR /arseeding +WORKDIR /app +COPY . . -VOLUME ["/arseeding/data"] +RUN go mod tidy +RUN go build -o ./build/arseeding ./cmd -COPY cmd/arseeding /arseeding/arseeding EXPOSE 8080 -ENTRYPOINT [ "/arseeding/arseeding" ] \ No newline at end of file +CMD [ "./build/arseeding" ] +