docker: modified files for local build

dependabot/pip/src/flask-2.3.2
TiynGER 4 years ago
parent 856205355a
commit 09b4b858ef

@ -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

@ -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`.

@ -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
Loading…
Cancel
Save