Create default FileDir directory in Dockerfile

This commit is contained in:
Rasmus Karlsson 2022-08-14 13:28:58 +02:00
parent 5cec67bfdb
commit e945a57a55
2 changed files with 3 additions and 2 deletions

View file

@ -6,4 +6,5 @@ RUN go build
FROM alpine:latest FROM alpine:latest
COPY --from=build /app/jaf /app/jaf COPY --from=build /app/jaf /app/jaf
WORKDIR /app WORKDIR /app
RUN mkdir -p /var/www/jaf
CMD ["./jaf"] CMD ["./jaf"]

View file

@ -60,7 +60,7 @@ Running it from the GitHub Container Registry
docker run \ docker run \
-p 4712:4711 \ -p 4712:4711 \
-v /path/to/your/config.conf:/app/jaf.conf \ -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 ghcr.io/leon-richardt/jaf:latest
``` ```
@ -70,7 +70,7 @@ docker build -t jaf .
docker run \ docker run \
-p 4712:4711 \ -p 4712:4711 \
-v /path/to/your/config.conf:/app/jaf.conf \ -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 jaf
``` ```