added symlink for serversettings.json
This commit is contained in:
parent
4faf7c4435
commit
94167a0d14
2 changed files with 14 additions and 11 deletions
17
Dockerfile
17
Dockerfile
|
|
@ -1,16 +1,19 @@
|
|||
FROM alpine:latest
|
||||
|
||||
ENV PUID=1000 PGID=1000
|
||||
RUN apk -U upgrade --no-cache \
|
||||
&& apk add --no-cache openjdk11-jre \
|
||||
&& apk add --no-cache curl \
|
||||
&& apk add --no-cache grep \
|
||||
&& mkdir /app \
|
||||
&& mkdir /config \
|
||||
&& ln -s /config/serversettings.json /app/serversettings.json
|
||||
|
||||
RUN apk --update add --no-cache openjdk11-jre grep curl
|
||||
|
||||
RUN mkdir /app
|
||||
RUN mkdir /config
|
||||
STOPSIGNAL SIGTERM
|
||||
|
||||
COPY run_bot.sh /app/run_bot.sh
|
||||
RUN chmod +x /app/run_bot.sh
|
||||
RUN chmod 700 /app/run_bot.sh
|
||||
|
||||
WORKDIR /app
|
||||
VOLUME /config
|
||||
|
||||
CMD ["/bin/sh","./run_bot.sh"]
|
||||
CMD ["./run_bot.sh"]
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
# jmusicbot-docker
|
||||
docker container for [JMusicBot](https://github.com/jagrosh/MusicBot). This uses the latest Alpine image for a small footprint.
|
||||
# JMusicBot Docker
|
||||
Docker container for [JMusicBot](https://github.com/jagrosh/MusicBot). This uses the latest Alpine image for a small footprint.
|
||||
|
||||
## Usage
|
||||
Place your **config.txt** in `yourpath/toconfig` to map it to the container. If you need to access the `serversettings.json` file, you can hop into the container to access it
|
||||
Place your **config.txt** in `yourpath/toconfig` to map it to the container. The config folder will also contain `serversettings.json` if it exists. If you need to access the container you can hop into it and get a shell using:
|
||||
|
||||
```bash
|
||||
docker exec -it jmusicbot /bin/sh
|
||||
|
|
|
|||
Loading…
Reference in a new issue