From 0561a67d11f3f0d657f0af751d3217472fd3d9c1 Mon Sep 17 00:00:00 2001 From: Luna Tsuki Date: Fri, 26 Feb 2021 23:11:36 +0100 Subject: [PATCH] update up1 --- up1/Dockerfile | 10 +++++++--- up1/README.md | 3 ++- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/up1/Dockerfile b/up1/Dockerfile index b2f32cc..08b72f4 100644 --- a/up1/Dockerfile +++ b/up1/Dockerfile @@ -1,9 +1,14 @@ FROM alpine:3.7 RUN apk add --no-cache nodejs git jq + +EXPOSE 80 + RUN git clone https://github.com/Upload/Up1 /Up1 RUN mkdir /.npm /.config +RUN addgroup -S up1 -g 1000 && adduser -S -u 1000 up1 -G up1 -H -h /Up1 + WORKDIR /Up1/server RUN npm install @@ -15,13 +20,12 @@ COPY ./docker-entrypoint.sh /docker-entrypoint.sh RUN chmod +x /docker-entrypoint.sh RUN chown -R 1000:1000 /Up1 /.npm /.config -EXPOSE 80 - USER 1000:1000 - +VOLUME [ "/Up1/i" ] ENV server_url "" ENV api_key "abc" ENV footer 'Source Code - Contact' ENV maximum_file_size "50000000" + ENTRYPOINT [ "/docker-entrypoint.sh" ] \ No newline at end of file diff --git a/up1/README.md b/up1/README.md index de648e7..f000d64 100644 --- a/up1/README.md +++ b/up1/README.md @@ -1,4 +1,5 @@ # Configuration + - `api_key` - API key used for uploading (string; required) - `footer` - HTML for string footer (string) - `maximum_file_size` - Maximum file size (number; required) @@ -6,5 +7,5 @@ Current version doesn't support `cloudflare-cache-invalidate` nor `https` settings. # Persistent data + - `/Up1/i` -- `/Up1/client` \ No newline at end of file