Switching to alpine linux! Smaller footprints. Fixes #17
This commit is contained in:
parent
bb32a5769a
commit
5834e350db
@ -1,7 +1,6 @@
|
|||||||
FROM python:3.6.2-slim
|
FROM python:3.6.2-alpine3.6
|
||||||
LABEL name="Dragon Bot"
|
LABEL name="Dragon Bot"
|
||||||
RUN apt-get update && apt-get install curl -y &&\
|
RUN apk update && apk add --no-cache curl vim docker
|
||||||
curl -Lks get.docker.com | bash
|
|
||||||
|
|
||||||
RUN pip install requests discord.py docker pybooru
|
RUN pip install requests discord.py docker pybooru
|
||||||
ADD app /app
|
ADD app /app
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
FROM python:3.6.2-slim
|
FROM python:3.6.2-alpine3.6
|
||||||
LABEL name="Dragon Bot Test environment"
|
LABEL name="Dragon Bot Test environment"
|
||||||
RUN apt-get update && apt-get install curl vim -y &&\
|
RUN apk update && apk add --no-cache curl vim docker
|
||||||
curl -Lks get.docker.com | bash
|
|
||||||
|
|
||||||
RUN pip install requests discord.py docker pybooru pylint
|
RUN pip install requests discord.py docker pybooru pylint
|
||||||
ADD app /app
|
ADD app /app
|
||||||
|
@ -6,5 +6,5 @@ printf "[+] Done\n"
|
|||||||
# Run that shit and mount the docker socket so it can talk to the sky-factory container
|
# Run that shit and mount the docker socket so it can talk to the sky-factory container
|
||||||
printf "\n[-] Running dragon bot in test mode\n"
|
printf "\n[-] Running dragon bot in test mode\n"
|
||||||
docker build -f ./Dockerfile-test-env -t dragon-bot-test . || exit
|
docker build -f ./Dockerfile-test-env -t dragon-bot-test . || exit
|
||||||
docker run -ti --name dragon-bot-test -e DRAGON_ENV=test -v /var/run/docker.sock:/var/run/docker.sock dragon-bot-test bash
|
docker run -ti --name dragon-bot-test -e DRAGON_ENV=test -v /var/run/docker.sock:/var/run/docker.sock dragon-bot-test sh
|
||||||
printf "[+] Done\n"
|
printf "[+] Done\n"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user