mirror of
https://github.com/tiyn/beaker-blog.git
synced 2025-04-02 15:37:46 +02:00
docker: modified files for local build
This commit is contained in:
parent
856205355a
commit
09b4b858ef
10
Dockerfile
10
Dockerfile
@ -1,12 +1,6 @@
|
|||||||
FROM ubuntu:16.04
|
FROM python:3
|
||||||
|
|
||||||
MAINTAINER Tiyn tiyn@martenkante.eu
|
MAINTAINER tiyn tiyn@mail-mk.eu
|
||||||
|
|
||||||
RUN apt-get update
|
|
||||||
|
|
||||||
RUN apt-get upgrade -y
|
|
||||||
|
|
||||||
RUN apt-get install python3 python3-pip -y
|
|
||||||
|
|
||||||
COPY src /blog
|
COPY src /blog
|
||||||
|
|
||||||
|
@ -75,9 +75,4 @@ Set the following ports with the -p tag.
|
|||||||
|
|
||||||
#### Example run-command
|
#### Example run-command
|
||||||
|
|
||||||
Either use the docker image `tiynger/beaker-blog` or run
|
An example run command is shown in `rebuild.sh`.
|
||||||
`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`
|
|
||||||
|
9
rebuild.sh
Executable file
9
rebuild.sh
Executable file
@ -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…
x
Reference in New Issue
Block a user