minor style changes, added graphics volume

master
tiyn 1 month ago
parent 472d8c74c6
commit 6c586c6a89

@ -10,6 +10,8 @@ RUN pip3 install -r requirements.txt
VOLUME /blog/templates/entry VOLUME /blog/templates/entry
VOLUME /blog/static/graphics
EXPOSE 5000 EXPOSE 5000
ENTRYPOINT [ "python3" ] ENTRYPOINT [ "python3" ]

@ -58,10 +58,11 @@ The `config.py` can be found in the `src` folder.
Set the following volumes with the -v tag. Set the following volumes with the -v tag.
| Volume-Name | Container mount | Description | | Volume-Name | Container mount | Description |
| ------------- | --------------------------- | ------------------------------------------------------------ | | ------------- | --------------------------- | -------------------------------------------------------- |
| `config-file` | `/blog/config.py` | Config file | | `config-file` | `/blog/config.py` | Config file |
| `entries` | `/blog/templates/entry` | Directory for blog entries | | `entries` | `/blog/templates/entry` | Directory for blog entries |
| `graphics` | `/blog/static/graphics` | Directory for images needed for entries |
| `css` | `/blog/static/css` | (optional) Directory for css files | | `css` | `/blog/static/css` | (optional) Directory for css files |
| `html` | `/blog/templates` | (optional) Directory for templates (entry-volume not needed) | | `html` | `/blog/templates` | (optional) Directory for templates (entry-volume not needed) |

@ -6,4 +6,6 @@ docker run --name beaker-blog \
--restart unless-stopped \ --restart unless-stopped \
-p "5000:5000" \ -p "5000:5000" \
-e FLASK_ENV=development \ -e FLASK_ENV=development \
-v entries:/blog/templates/entry \
-v graphics:/blog/static/graphics \
-d tiyn/beaker-blog -d tiyn/beaker-blog

@ -1,2 +1,2 @@
Flask==1.1.2 Flask>=2.2.2
Markdown==3.1.1 Markdown==3.1.1

@ -167,3 +167,6 @@ footer .center {
padding-left: 20; padding-left: 20;
} }
figure {
padding:20px;
}

@ -25,7 +25,7 @@
<!-- Content --> <!-- Content -->
<footer> <footer>
<div class="center"> <div class="center">
Made with <a href="https://github.com/tiyn/beaker-blog">Beaker Blog </a>. Made with <a href="https://github.com/tiyn/beaker-blog">Beaker Blog</a>.
</div> </div>
</footer> </footer>
</body> </body>

Loading…
Cancel
Save