Spaces:
Sleeping
Sleeping
OxbridgeEconomics
commited on
Commit
β’
b220449
1
Parent(s):
ab30e46
commit
Browse files- Dockerfile +22 -0
- README.md +10 -0
- requirements.txt +0 -0
Dockerfile
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Use an official Python runtime as a parent image with Python 3.10
|
2 |
+
FROM python:3.10-slim
|
3 |
+
|
4 |
+
# Create a non-root user and change ownership
|
5 |
+
RUN useradd -m -u 1000 user
|
6 |
+
WORKDIR /app
|
7 |
+
COPY --chown=user . /app
|
8 |
+
|
9 |
+
# Install any needed packages specified in requirements.txt
|
10 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
11 |
+
|
12 |
+
# Make port 7860 available to the world outside this container
|
13 |
+
EXPOSE 7860
|
14 |
+
|
15 |
+
# Define environment variable
|
16 |
+
ENV FLASK_APP=app
|
17 |
+
ENV FLASK_RUN_HOST=0.0.0.0
|
18 |
+
ENV FLASK_RUN_PORT=7860
|
19 |
+
ENV FLASK_ENV=development
|
20 |
+
|
21 |
+
# Run flask command when the container launches
|
22 |
+
CMD ["flask", "run"]
|
README.md
CHANGED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
title: AI News Agent
|
3 |
+
emoji: π
|
4 |
+
colorFrom: blue
|
5 |
+
colorTo: indigo
|
6 |
+
sdk: docker
|
7 |
+
pinned: false
|
8 |
+
---
|
9 |
+
|
10 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
requirements.txt
CHANGED
Binary files a/requirements.txt and b/requirements.txt differ
|
|