update up1

This commit is contained in:
Luna 2021-02-26 23:11:36 +01:00
parent b1dd803cbe
commit 0561a67d11
No known key found for this signature in database
GPG key ID: DE9E9D23CD19A149
2 changed files with 9 additions and 4 deletions

View file

@ -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 '<a href="https://github.com/Upload/Up1" target="_blank">Source Code</a> - <a href="mailto:someemail@email" id="contact" target="_blank">Contact</a>'
ENV maximum_file_size "50000000"
ENTRYPOINT [ "/docker-entrypoint.sh" ]

View file

@ -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`