This repository has been archived on 2025-07-20. 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.
magicbox/Dockerfile
2024-04-05 20:56:45 +01:00

13 lines
No EOL
305 B
Docker

FROM golang:1 as builder
RUN mkdir /build
ADD . /build
WORKDIR /build
RUN CGO_ENABLED=0 GOOS=linux go build -a -buildvcs=false -installsuffix cgo -ldflags '-extldflags "-static" -s -w' -o main git.tdpain.net/codemicro/magicbox
FROM alpine
COPY --from=builder /build/main /
WORKDIR /run
CMD ["../main"]