added gitignore and fixed dockerfile as only std lib is used
Some checks failed
Build and Push / build (push) Failing after 1m33s
Some checks failed
Build and Push / build (push) Failing after 1m33s
This commit is contained in:
parent
052277a252
commit
a41df57bff
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
build/
|
@ -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/
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user