diff --git a/DOCKERFILE b/DOCKERFILE index a58f996..14f87b0 100644 --- a/DOCKERFILE +++ b/DOCKERFILE @@ -1,7 +1,6 @@ FROM golang:latest -RUN mkdir /app -ADD . /app/ +RUN mkdir -p /app WORKDIR /app -RUN go get -u -RUN go build -o main . -CMD ["/app/main"] \ No newline at end of file +ADD . /app +RUN go build ./main.go +CMD ["./main"] \ No newline at end of file