update dockerfile
This commit is contained in:
@@ -11,7 +11,7 @@ WORKDIR /app
|
|||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
# Run swag init to generate Swagger documentation
|
# 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
|
# Build the Go application inside the container
|
||||||
RUN go build -o main .
|
RUN go build -o main .
|
||||||
@@ -20,4 +20,4 @@ RUN go build -o main .
|
|||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
|
|
||||||
# Run the application
|
# Run the application
|
||||||
CMD ["./main"]
|
CMD ["./main"]
|
||||||
|
|||||||
Reference in New Issue
Block a user