diff --git a/Dockerfile b/Dockerfile index 3fc1e55..3f2c87f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,12 +1,6 @@ -FROM ubuntu:16.04 +FROM python:3 -MAINTAINER Tiyn tiyn@martenkante.eu - -RUN apt-get update - -RUN apt-get upgrade -y - -RUN apt-get install python3 python3-pip -y +MAINTAINER tiyn tiyn@mail-mk.eu COPY src /blog diff --git a/README.md b/README.md index ac20e78..70185ba 100644 --- a/README.md +++ b/README.md @@ -75,9 +75,4 @@ Set the following ports with the -p tag. #### Example run-command -Either use the docker image `tiynger/beaker-blog` or run -`docker build . -t beaker-blog` in the top directory of this repository. -If so you need to change the command below apropiately -(`tiynger/beaker-blog` to `beaker-blog`). - -`docker run --name blog --restart unless-stopped -v ./config.py:/blog/src/config.py -v entries:/blog/src/templates/entry -p 80:5000 -d tiynger/beaker-blog` +An example run command is shown in `rebuild.sh`. diff --git a/rebuild.sh b/rebuild.sh new file mode 100755 index 0000000..bfafcd1 --- /dev/null +++ b/rebuild.sh @@ -0,0 +1,9 @@ +#!/bin/sh +docker stop beaker-blog +docker rm beaker-blog +docker build . -t tiyn/beaker-blog +docker run --name beaker-blog \ + --restart unless-stopped \ + -p "5000:5000" \ + -e FLASK_ENV=development \ + -d tiyn/beaker-blog