added gitignore and fixed dockerfile as only std lib is used
Some checks failed
Build and Push / build (push) Failing after 1m33s

This commit is contained in:
hook-lord 2024-09-14 00:29:16 +02:00
parent 052277a252
commit a41df57bff
2 changed files with 2 additions and 4 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
build/

View File

@ -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/