Private
Public Access
feat: añadido docker compose y los dockerfile para las builds
This commit is contained in:
1 parent
b9b04db154
commit
2e18319893
10 files changed
+300
-67
No files matched your search
@@ -0,0 +1,18 @@
|
||||
# syntax=docker/dockerfile:1
|
||||
FROM golang:1.26-alpine AS builder
|
||||
|
||||
WORKDIR /app
|
||||
COPY go.mod go.sum ./
|
||||
RUN go mod download
|
||||
|
||||
COPY . .
|
||||
RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w" -o server .
|
||||
|
||||
# ---
|
||||
FROM scratch
|
||||
|
||||
COPY --from=builder /app/server /server
|
||||
# COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
||||
|
||||
EXPOSE 8080
|
||||
ENTRYPOINT ["/server"]
|
||||
Reference in new issue
Block a user