From a41df57bffbe324d8932c61636546ca406bf588c Mon Sep 17 00:00:00 2001 From: hook-lord Date: Sat, 14 Sep 2024 00:29:16 +0200 Subject: [PATCH] added gitignore and fixed dockerfile as only std lib is used --- .gitignore | 1 + Dockerfile | 5 +---- 2 files changed, 2 insertions(+), 4 deletions(-) create mode 100644 .gitignore 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/