diff options
| author | seth <[email protected]> | 2023-01-16 05:58:38 -0500 |
|---|---|---|
| committer | seth <[email protected]> | 2023-01-16 05:58:38 -0500 |
| commit | 304689c339a17eccfa6f2baa9e354360b06d7eb7 (patch) | |
| tree | 979b748e4093c823e2fb3b0d888d8b8a50c215b8 | |
initial commit
| -rw-r--r-- | .gitattributes | 1 | ||||
| -rw-r--r-- | Dockerfile | 24 | ||||
| -rw-r--r-- | LICENSE | 21 | ||||
| -rw-r--r-- | README.md | 18 |
4 files changed, 64 insertions, 0 deletions
diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..fcadb2c --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +* text eol=lf 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" ] @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2022 seth + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..c4563a6 --- /dev/null +++ b/README.md @@ -0,0 +1,18 @@ +# pacwiz-serve + +a minimal docker (or podman) container to serve packwiz modpacks anywhere :) + +## how to use + +all you need is one command: + +```bash +docker run -d --name packwiz-serve -p <your_desired_port>:8080 -v /path/to/your/modpack:/data getchoo/packwiz-serve +``` + +## troubleshooting + +### permission denied errors + +for users of a system with SELinux, you maybe need to append `:z` to your volume mount options. +for example: `-v /path/to/your/modpack:/data:z` |
