diff --git a/Dockerfile b/Dockerfile index 4160576..be27abb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,9 @@ -FROM alpine:3 -COPY rbxcompiler / +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"] \ No newline at end of file