Browse Source

adding dockerfile

master
TiynGER 7 months ago
parent
commit
bcbf36d7a0
15 changed files with 24 additions and 1 deletions
  1. +1
    -1
      README.md
  2. +23
    -0
      docker/Dockerfile
  3. +0
    -0
      src/app.py
  4. +0
    -0
      src/content.py
  5. +0
    -0
      src/requirements.txt
  6. +0
    -0
      src/static/css/blog.css
  7. +0
    -0
      src/static/css/style.css
  8. +0
    -0
      src/templates/archive.html
  9. +0
    -0
      src/templates/entry/test-entry1.html
  10. +0
    -0
      src/templates/entry/test-entry2.html
  11. +0
    -0
      src/templates/entry/test-entry3.md
  12. +0
    -0
      src/templates/error.html
  13. +0
    -0
      src/templates/index.html
  14. +0
    -0
      src/templates/rss.xml
  15. +0
    -0
      src/templates/template.html

+ 1
- 1
README.md

@ -4,7 +4,7 @@ This is a simple blog based on Pythons Flask framework.
## Deployment ## Deployment
- `pip3 install requirements.txt` - install depenencies
- `pip3 install -r requirements.txt` - install depenencies
- run `python app.py` - run `python app.py`
- blog is available on port 5000 - blog is available on port 5000

+ 23
- 0
docker/Dockerfile

@ -0,0 +1,23 @@
FROM ubuntu
MAINTAINER Tiyn tiyn@martenkante.eu
RUN apt-get update
RUN apt-get install python3 python3-pip -y
RUN git clone https://github.com/tiyn/flaskblog /blog
WORKDIR /blog/src
RUN pip3 install -r requirements.txt
VOLUME /blog/src/static/css
VOLUME /blog/src/templates
EXPOSE 5000
ENTRYPOINT [ "python3" ]
CMD [ "app.py" ]

app.py → src/app.py


content.py → src/content.py


requirements.txt → src/requirements.txt


static/css/blog.css → src/static/css/blog.css


static/css/style.css → src/static/css/style.css


templates/archive.html → src/templates/archive.html


templates/entry/test-entry1.html → src/templates/entry/test-entry1.html


templates/entry/test-entry2.html → src/templates/entry/test-entry2.html


templates/entry/test-entry3.md → src/templates/entry/test-entry3.md


templates/error.html → src/templates/error.html


templates/index.html → src/templates/index.html


templates/rss.xml → src/templates/rss.xml


templates/template.html → src/templates/template.html


Loading…
Cancel
Save