Skip to content

Commit 9aba7f9

Browse files
author
SM_SAYEED
committed
Add Dockerfile and update app for Fly
1 parent 85cb093 commit 9aba7f9

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

Dockerfile.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
FROM python:3.11-slim
2+
WORKDIR /app
3+
COPY . /app
4+
RUN pip install --no-cache-dir -r requirements.txt
5+
ENV PORT 8080
6+
EXPOSE 8080
7+
CMD ["python", "app.py"]

app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,4 +445,4 @@ def delete_dataset_file(property_name, tab, filename):
445445

446446
# ========== MAIN ==========
447447
if __name__ == '__main__':
448-
app.run(debug=True)
448+
app.run(host="0.0.0.0", port=int(os.environ.get("PORT", 8080)))

0 commit comments

Comments
 (0)