9 lines
344 B
Docker
9 lines
344 B
Docker
FROM registry.itzana.me/docker-proxy/library/golang:1.20 AS builder
|
|
WORKDIR /go/src/git.itzana.me/itzaname/rbxcompiler
|
|
COPY . ./
|
|
RUN CGO_ENABLED=0 go build -a -installsuffix cgo -o /rbxcompiler ./cmd/rbxcompiler
|
|
|
|
FROM registry.itzana.me/docker-proxy/library/alpine:3
|
|
COPY --from=builder /rbxcompiler /
|
|
WORKDIR /stage
|
|
ENTRYPOINT ["/rbxcompiler"] |