Skip to content

Commit 7862d71

Browse files
authored
Merge pull request #6 from the-redlord/dockerize
Dockerize
2 parents d9d5992 + b795418 commit 7862d71

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

Dockerfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
FROM python:3.8-alpine
2+
RUN apk add --no-cache gcc
3+
RUN apk add build-base
4+
RUN pip install --upgrade pip
5+
COPY . /app
6+
WORKDIR /app
7+
RUN pip install -r requirements.txt
8+
9+
EXPOSE 5000
10+
CMD ["gunicorn", "-b :5000", "application:app"]

app/__init__.pyc

330 Bytes
Binary file not shown.

application.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
from app import app
22

3+
if __name__ == "__main__":
4+
app.run()

0 commit comments

Comments
 (0)