Skip to content

Commit

Permalink
Changing base image to avoid psycopg compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
uselessscat committed Jan 30, 2020
1 parent ce5637b commit 3688b95
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Latest :)
FROM python:3.8-alpine
FROM python:3.8-slim

WORKDIR /usr/src/app

Expand Down
2 changes: 1 addition & 1 deletion src/app/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def configure_app(app: Flask) -> None:


def create_app() -> Flask:
app = Flask(__name__)
app: Flask = Flask(__name__)

configure_app(app)

Expand Down
5 changes: 4 additions & 1 deletion src/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
Flask ~= 1.1
Flask-SQLAlchemy ~= 2.4
Flask-Migrate ~= 2.5
Flask-Migrate ~= 2.5

# postgres database adapter
psycopg2-binary >= 2.8

0 comments on commit 3688b95

Please sign in to comment.