Browse Source

Docker stuffs

mistress
Daniel Muckerman 4 years ago
parent
commit
ef2bcc1573
3 changed files with 11 additions and 1 deletions
  1. +10
    -0
      Dockerfile
  2. +1
    -1
      app.py
  3. +0
    -0
      config/config.yaml

+ 10
- 0
Dockerfile View File

@ -0,0 +1,10 @@
FROM python:3.7
LABEL maintainer="Dan Muckerman <danielmuckerman@me.com>"
WORKDIR /project
ADD . /project
RUN rm -rf /project/env
RUN pip install -r requirements.txt
CMD ["flask","run","--host=0.0.0.0"]

+ 1
- 1
app.py View File

@ -7,7 +7,7 @@ Bootstrap(app)
app.secret_key = 'asdf'
app.debug = True
with open('config.yaml') as f:
with open('config/config.yaml') as f:
yaml_data = yaml.load(f, Loader=yaml.SafeLoader)
search = yaml_data['search']

config.yaml → config/config.yaml View File


Loading…
Cancel
Save