Files
hadrian/Dockerfile
2023-11-02 15:16:18 +01:00

23 lines
425 B
Docker

# Building the binary of the App
FROM golang:1.21 AS build
WORKDIR /go/src/ladder
COPY . .
RUN go mod download
RUN CGO_ENABLED=0 GOOS=linux go build -o ladder cmd/main.go
FROM debian:12-slim as release
WORKDIR /app
COPY --from=build /go/src/ladder/ladder .
RUN chmod +x /app/ladder
RUN apt update && apt install -y ca-certificates && rm -rf /var/lib/apt/lists/*
#EXPOSE 2000
#ENTRYPOINT ["/usr/bin/dumb-init", "--"]