From 304689c339a17eccfa6f2baa9e354360b06d7eb7 Mon Sep 17 00:00:00 2001 From: seth Date: Mon, 16 Jan 2023 05:58:38 -0500 Subject: initial commit --- Dockerfile | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Dockerfile (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..1109e93 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,24 @@ +FROM golang:alpine3.17 + +WORKDIR /src + +RUN apk update +RUN apk add git + +RUN git clone https://github.com/packwiz/packwiz.git ./ + +# cache go modules +WORKDIR /build +RUN mv /src/go.mod ./ && mv /src/go.sum ./ +RUN go mod download + +# build packwiz +RUN mv /src/* ./ +RUN go build -o /packwiz + +WORKDIR /data +VOLUME /data + +EXPOSE 8080 + +CMD [ "/packwiz", "serve" ] -- cgit v1.2.3