1
0
Fork 0
This repository has been archived on 2025-09-02. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
mareshq-yggdrasil/Dockerfile
Vojtech Mares 3ee3be9e7f
feat: setup Fiber HTTP server
- graceful shutdown
- logging with zap
2024-05-04 10:01:48 +02:00

21 lines
295 B
Docker

FROM golang:1.22-alpine3.19 AS builder
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN go build -o yggdrasil ./cmd/yggdrasil
FROM alpine:3.19 AS runtime
WORKDIR /app
RUN apk add --no-cache ca-certificates
COPY --from=builder /app/yggdrasil .
CMD ["/app/yggdrasil"]