diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d163863 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +build/ \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 93158e5..53e8705 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,7 +7,7 @@ FROM golang:1.23-alpine as builder WORKDIR /app # Copy go.mod and go.sum files if you have them -COPY go.mod go.sum ./ +COPY go.mod ./ # Download all dependencies RUN go mod download @@ -21,9 +21,6 @@ RUN go build -o confetti-api main.go # Stage 2: Create a minimal image with the application binary FROM alpine:latest -# Install ca-certificates to handle HTTPS requests -RUN apk --no-cache add ca-certificates - # Set the working directory inside the container WORKDIR /root/