fixed to use tidy

This commit is contained in:
Erik Eckert 2023-12-06 23:05:32 +00:00
parent 360ccfe50b
commit 4647bfce1b

View File

@ -6,8 +6,9 @@ WORKDIR /app
EXPOSE 80 4000
COPY ./main/* ./
RUN go install github.com/gorilla/mux
RUN go mod tidy
ENV GO111MODULE=off
RUN CGO_ENABLED=0 go build -gcflags "all=-N -l" -o debug-app .
CMD [ "/go/bin/dlv", "--listen=:4000", "--headless=true", "--log=true", "--accept-multiclient", "--api-version=2", "exec", "/app/debug-app" ]
CMD [ "/go/bin/dlv", "--listen=:4000", "--headless=true", "--log=true", "--accept-multiclient", "--api-version=2", "exec", "/app/debug-app" ]