mirror of
https://git.netzspielplatz.de/docker-multiarch/prosody-filer.git
synced 2025-11-08 17:09:28 +00:00
Initial commit
This commit is contained in:
commit
d4c4179dd1
3 changed files with 29 additions and 0 deletions
14
Dockerfile
Normal file
14
Dockerfile
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
# build stage
|
||||||
|
FROM golang:alpine AS build-env
|
||||||
|
RUN apk --no-cache add build-base git gcc
|
||||||
|
RUN go get github.com/ThomasLeister/prosody-filer
|
||||||
|
RUN cd $GOPATH/src/github.com/ThomasLeister/prosody-filer; \
|
||||||
|
VERSIONSTRING="$(git describe --tags --exact-match || git rev-parse --short HEAD)"; \
|
||||||
|
echo "Building version ${VERSIONSTRING} of Prosody-Filer ..." \
|
||||||
|
./build.sh
|
||||||
|
|
||||||
|
# final stage
|
||||||
|
FROM alpine
|
||||||
|
WORKDIR /app
|
||||||
|
COPY --from=build-env /go/bin/prosody-filer /app/
|
||||||
|
ENTRYPOINT /app/prosody-filer
|
||||||
0
README.md
Normal file
0
README.md
Normal file
15
config.toml
Normal file
15
config.toml
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
###
|
||||||
|
### Server configuration
|
||||||
|
### (rename this file to "config.toml"!)
|
||||||
|
|
||||||
|
### IP address and port to listen to, e.g. "[::]:5050" to listen to ipv6 and ipv4 addresses
|
||||||
|
listenport = "[::]:5050"
|
||||||
|
|
||||||
|
### Secret (must match the one in prosody.conf.lua!)
|
||||||
|
secret = "mysecret"
|
||||||
|
|
||||||
|
### Where to store the uploaded files
|
||||||
|
storeDir = "./uploads/"
|
||||||
|
|
||||||
|
### Subdirectory for HTTP upload / download requests (usually "upload/")
|
||||||
|
uploadSubDir = "upload/"
|
||||||
Loading…
Add table
Add a link
Reference in a new issue