mirror of
https://github.com/SrIzan10/share-stuff-yes.git
synced 2026-06-06 01:06:54 +00:00
fix: some author and readme stuff
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
FROM node:lts-alpine
|
||||
|
||||
LABEL org.opencontainers.image.source="https://github.com/SrIzan10/share-stuff-yes" \
|
||||
org.opencontainers.image.vendor="Sr Izan" \
|
||||
org.opencontainers.image.authors="Sr Izan <izan@srizan.ml>"
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY ./package.json .
|
||||
|
||||
@@ -10,10 +10,14 @@ We're going to be using Docker here.
|
||||
|
||||
### Step 2: Run the container (and mount the images as a volume)
|
||||
You shouldn't have all your images in a container, because if there was some bug or data loss to the point where you can't backup the files, you're screwed.
|
||||
|
||||
`docker run -d -t --name sharex-sharestuff -v /host/path/to/have/your/files:/app/dist/i -e AUTHTOKEN=ARANDOMSTRING -e INSTANCEURL=https://yourinstancedomain.tld -p 80:8080 srizan10/share-stuff`
|
||||
|
||||
The `--name` can be changed to your liking.
|
||||
|
||||
On the volume part, change the `/host/path/to/have/your/files` to where you want to have the files hosted.
|
||||
The `AUTHTOKEN` env variable should be a real long random string with special characters, numbers, letters... I mean, go crazy! Whoever has that token can upload ANYTHING to the server. [This is a solid generator](https://delinea.com/resources/password-generator-it-tool).
|
||||
|
||||
For the INSTANCEURL variable, you need to set the main URL the server without the slash at the end. For example: `https://thissubdomainisanexample.srizan.ml` and NOT `https://thissubdomainisanexample.srizan.ml/`.
|
||||
In `-p` you can edit the first part, aka the port.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user