rochacbruno-archive / quokka_ng

:hamster: WIP - QuokkaCMS New Generation - Refactor from scratch using TinyDB
Other
73 stars 19 forks source link

Docker #65

Open rochacbruno opened 6 years ago

rochacbruno commented 6 years ago

Update docker image

yamilurbina commented 6 years ago

Olá @rochacbruno! I can work on this. I was thinking of switching to the official python alpine image for this, what do you think?

dhoeric commented 6 years ago

Hi @rochacbruno, is that referring docker for development environment or a docker image of quokka_ng for end user? 🙂

rochacbruno commented 6 years ago

@dhoeric end-user

the use case is, instead of preparing a Python3 environment and install quokka you will be able to do:

$ docker run -d -v $PWD:/work quokka init MyProject --theme=bootstrap3
Creating a project in $PWD/myproject...

That volume mount is needed to allow quokka to copy project-template to where container run.

then user will be able to:

$ docker run -d -v $PWD:/work -p 5000:5000 quokka runserver
Running on localhost:5000

So it can useful even to deploy quokka.