update up1
This commit is contained in:
parent
b1dd803cbe
commit
0561a67d11
2 changed files with 9 additions and 4 deletions
|
@ -1,9 +1,14 @@
|
||||||
FROM alpine:3.7
|
FROM alpine:3.7
|
||||||
RUN apk add --no-cache nodejs git jq
|
RUN apk add --no-cache nodejs git jq
|
||||||
|
|
||||||
|
EXPOSE 80
|
||||||
|
|
||||||
RUN git clone https://github.com/Upload/Up1 /Up1
|
RUN git clone https://github.com/Upload/Up1 /Up1
|
||||||
|
|
||||||
RUN mkdir /.npm /.config
|
RUN mkdir /.npm /.config
|
||||||
|
|
||||||
|
RUN addgroup -S up1 -g 1000 && adduser -S -u 1000 up1 -G up1 -H -h /Up1
|
||||||
|
|
||||||
WORKDIR /Up1/server
|
WORKDIR /Up1/server
|
||||||
RUN npm install
|
RUN npm install
|
||||||
|
|
||||||
|
@ -15,13 +20,12 @@ COPY ./docker-entrypoint.sh /docker-entrypoint.sh
|
||||||
RUN chmod +x /docker-entrypoint.sh
|
RUN chmod +x /docker-entrypoint.sh
|
||||||
RUN chown -R 1000:1000 /Up1 /.npm /.config
|
RUN chown -R 1000:1000 /Up1 /.npm /.config
|
||||||
|
|
||||||
EXPOSE 80
|
|
||||||
|
|
||||||
USER 1000:1000
|
USER 1000:1000
|
||||||
|
VOLUME [ "/Up1/i" ]
|
||||||
ENV server_url ""
|
ENV server_url ""
|
||||||
ENV api_key "abc"
|
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 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"
|
ENV maximum_file_size "50000000"
|
||||||
|
|
||||||
|
|
||||||
ENTRYPOINT [ "/docker-entrypoint.sh" ]
|
ENTRYPOINT [ "/docker-entrypoint.sh" ]
|
|
@ -1,4 +1,5 @@
|
||||||
# Configuration
|
# Configuration
|
||||||
|
|
||||||
- `api_key` - API key used for uploading (string; required)
|
- `api_key` - API key used for uploading (string; required)
|
||||||
- `footer` - HTML for string footer (string)
|
- `footer` - HTML for string footer (string)
|
||||||
- `maximum_file_size` - Maximum file size (number; required)
|
- `maximum_file_size` - Maximum file size (number; required)
|
||||||
|
@ -6,5 +7,5 @@
|
||||||
Current version doesn't support `cloudflare-cache-invalidate` nor `https` settings.
|
Current version doesn't support `cloudflare-cache-invalidate` nor `https` settings.
|
||||||
|
|
||||||
# Persistent data
|
# Persistent data
|
||||||
|
|
||||||
- `/Up1/i`
|
- `/Up1/i`
|
||||||
- `/Up1/client`
|
|
Loading…
Add table
Reference in a new issue