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

21 lines
281 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 .
FROM alpine:3.19 AS runtime
WORKDIR /app
RUN apk add --no-cache ca-certificates
COPY --from=builder /app/yggdrasil .
CMD ["/app/yggdrasil"]