Switching to python slim
This commit is contained in:
parent
10c9d5ab4e
commit
53d124bd7d
@ -1,5 +1,6 @@
|
||||
FROM python
|
||||
RUN pip3 install requests discord.py docker pybooru && \
|
||||
FROM python:3.6.2-slim
|
||||
RUN apt-get update && apt-get install -y curl &&\
|
||||
pip3 install requests discord.py docker pybooru && \
|
||||
curl -Lks get.docker.com | bash
|
||||
|
||||
ADD dragon-bot.py /
|
||||
|
@ -1,7 +1,7 @@
|
||||
# Put the latest version of the dragon-bot.py in the container
|
||||
printf "[-] Rebuilding container with latest code\n"
|
||||
docker build -t dragon-bot .
|
||||
printf "[+] Done\n"
|
||||
# printf "[-] Rebuilding container with latest code\n"
|
||||
# docker build -t dragon-bot .
|
||||
# printf "[+] Done\n"
|
||||
|
||||
# Remove the running container so we cna re-use the container name 'dragon-bot'
|
||||
printf "\n[-] Deleting old dragon-bot container from system\n"
|
||||
@ -10,5 +10,5 @@ printf "[+] Done\n"
|
||||
|
||||
# Run that shit and mount the docker socket so it can talk to the sky-factory container
|
||||
printf "\n[-] Starting up latest build of container\n"
|
||||
docker run -d --name dragon-bot -v /var/run/docker.sock:/var/run/docker.sock --restart always dragon-bot
|
||||
docker run -d --name dragon-bot -v /var/run/docker.sock:/var/run/docker.sock --restart always ldooks/dragon-bot
|
||||
printf "[+] Done\n"
|
||||
|
Loading…
x
Reference in New Issue
Block a user