tostido commited on
Commit
15dd53b
·
1 Parent(s): 0af5ed0

Add Dockerfile for Streamlit on port 7860

Browse files
Files changed (2) hide show
  1. Dockerfile +19 -0
  2. requirements.txt +3 -0
Dockerfile ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Archery Tether Propulsion Systems - Docker Space
2
+ # Streamlit app for observatory interface
3
+
4
+ FROM python:3.10-slim
5
+
6
+ RUN useradd -m -u 1000 user
7
+ USER user
8
+ ENV PATH="/home/user/.local/bin:$PATH"
9
+
10
+ WORKDIR /app
11
+
12
+ COPY --chown=user ./requirements.txt requirements.txt
13
+ RUN pip install --no-cache-dir --upgrade -r requirements.txt
14
+
15
+ COPY --chown=user . /app
16
+
17
+ EXPOSE 7860
18
+
19
+ CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0", "--server.headless=true"]
requirements.txt CHANGED
@@ -1,5 +1,8 @@
1
  # Archery Tether Propulsion Systems - Dependencies
2
 
 
 
 
3
  # Core Physics Engine
4
  numpy>=1.24.0
5
  scipy>=1.11.0
 
1
  # Archery Tether Propulsion Systems - Dependencies
2
 
3
+ # Streamlit UI
4
+ streamlit>=1.30.0
5
+
6
  # Core Physics Engine
7
  numpy>=1.24.0
8
  scipy>=1.11.0