mirror of
https://github.com/lyx0/yaf.git
synced 2024-11-13 19:49:53 +01:00
Create default FileDir directory in Dockerfile
This commit is contained in:
parent
5cec67bfdb
commit
e945a57a55
2 changed files with 3 additions and 2 deletions
|
@ -6,4 +6,5 @@ RUN go build
|
|||
FROM alpine:latest
|
||||
COPY --from=build /app/jaf /app/jaf
|
||||
WORKDIR /app
|
||||
RUN mkdir -p /var/www/jaf
|
||||
CMD ["./jaf"]
|
||||
|
|
|
@ -60,7 +60,7 @@ Running it from the GitHub Container Registry
|
|||
docker run \
|
||||
-p 4712:4711 \
|
||||
-v /path/to/your/config.conf:/app/jaf.conf \
|
||||
-v /path/to/where/you/want/your/files/to/be/stored:/FileDir/in/your/config \
|
||||
-v /path/to/local/filedir:/var/www/jaf \
|
||||
ghcr.io/leon-richardt/jaf:latest
|
||||
```
|
||||
|
||||
|
@ -70,7 +70,7 @@ docker build -t jaf .
|
|||
docker run \
|
||||
-p 4712:4711 \
|
||||
-v /path/to/your/config.conf:/app/jaf.conf \
|
||||
-v /path/to/where/you/want/your/files/to/be/stored:/FileDir/in/your/config \
|
||||
-v /path/to/local/filedir:/var/www/jaf \
|
||||
jaf
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in a new issue