Skip to content

Commit

Permalink
#18 fix docker container usage
Browse files Browse the repository at this point in the history
  • Loading branch information
akryvtsun committed Oct 21, 2024
1 parent 5635260 commit d4f60e6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
FROM openjdk:17-jdk-slim

WORKDIR /use/local/guru-bot
ARG BOT_HOME=/use/local/guru-bot

COPY ./build/libs/guru-bot-1.0.0.jar /use/local/guru-bot/guru-bot.jar
WORKDIR $BOT_HOME

COPY ./build/libs/guru-bot-1.0.0.jar $BOT_HOME/guru-bot.jar

CMD ["java", "-jar", "guru-bot.jar"]
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,11 @@ BOT_DEBUG = true/false

Running Docker container (don't do this on Apple Silicon)
```bash
docker run -d --name guru-bot-container \
docker run -d --name guru-bot-container \
-e BOT_TOKEN="bot token" \
guru-bot
-e BOT_DEBUG="true" \
-v <path to 'course' folder on a host computer>:/use/local/guru-bot/course \
guru-bot
```

### Useful Links
Expand Down

0 comments on commit d4f60e6

Please sign in to comment.