From e729154f27594226121e88ab24c576ce212b0923 Mon Sep 17 00:00:00 2001 From: DeveloperDurp Date: Sun, 21 May 2023 08:46:53 -0500 Subject: [PATCH] update --- Dockerfile | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index b4798b5..2877a14 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # Use golang:1.17 as the base image -FROM golang:1.20 +FROM registry.durp.info/golang:1.20 ENV GOPATH /go ENV PATH $PATH:$GOPATH/bin @@ -8,13 +8,7 @@ ENV PATH $PATH:$GOPATH/bin WORKDIR /app # Copy the Go project files into the container -COPY . . - -# Run swag init to generate Swagger documentation -RUN go install && go install github.com/swaggo/swag/cmd/swag@v1.8.12 && swag init - -# Build the Go application inside the container -RUN go build -o main . +COPY ./output/main . # Expose the port the application listens on EXPOSE 8080