update dockerfile

This commit is contained in:
2023-05-07 16:42:21 -05:00
parent 46444d9d0c
commit 3b8a189507

View File

@@ -11,7 +11,7 @@ WORKDIR /app
COPY . .
# Run swag init to generate Swagger documentation
RUN go install && go install github.com/swaggo/swag/cmd/swag@latest && swag init
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 .
@@ -20,4 +20,4 @@ RUN go build -o main .
EXPOSE 8080
# Run the application
CMD ["./main"]
CMD ["./main"]