diff --git a/Dockerfile b/Dockerfile
index 5c6d03e5b8fcc153247aa787e23aa4ce83ca7e68..aa939961561026a4ab675261ed29225c9a2ae64b 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -27,4 +27,4 @@ RUN cd /tmp/wheels \
 
 ENV VIRTUALENV=/virtualenv
 ENV UWSGI_ENGINE=threads
-ENV WSGI_APP=mat_api_server.api:create_app
+ENV WSGI_APP=mat_api_server.wsgi:application
diff --git a/mat_api_server/api.py b/mat_api_server/api.py
index 67d1a761f3b6c6bbe859d8d1b7ce27f1e50c4a30..aef454d7b3e9b8a62b641f2407af6dede515ce03 100644
--- a/mat_api_server/api.py
+++ b/mat_api_server/api.py
@@ -9,14 +9,6 @@ import tempfile
 app = Flask(__name__)
 
 
-def create_app():
-    # Simple config from environment variables.
-    app.config.update({
-        'UPLOAD_DIR': os.getenv('UPLOAD_DIR'),
-    })
-    return app
-
-
 def get_parser_by_mime_type(path, mime_type):
     for parser_class in parser_factory._get_parsers():
         if mime_type in parser_class.mimetypes:
diff --git a/mat_api_server/wsgi.py b/mat_api_server/wsgi.py
new file mode 100644
index 0000000000000000000000000000000000000000..413dcd524bcd74c1bfa039229d212b41b508f682
--- /dev/null
+++ b/mat_api_server/wsgi.py
@@ -0,0 +1,11 @@
+import os
+from .api import app
+
+
+# Simple config from environment variables.
+app.config.update({
+    'UPLOAD_DIR': os.getenv('UPLOAD_DIR'),
+})
+
+
+application = app