deepakri201 commited on
Commit
9e988d1
·
1 Parent(s): 7837144
Files changed (2) hide show
  1. Dockerfile +39 -0
  2. requirements.txt +7 -0
Dockerfile ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use an official Python runtime as a parent image
2
+ FROM python:3.12.3
3
+
4
+ # Set up a new user named "user" with user ID 1000
5
+ RUN useradd -m -u 1000 user
6
+
7
+ # Switch to the "user" user
8
+ USER user
9
+
10
+ # Set home to the user's home directory
11
+ ENV HOME=/home/user \
12
+ PATH=/home/user/.local/bin:$PATH
13
+
14
+ # Set the working directory to the user's home directory
15
+ WORKDIR $HOME/app
16
+
17
+ # Try and run pip command after setting the user with `USER user` to avoid permission issues with Python
18
+ RUN pip install --no-cache-dir --upgrade pip
19
+
20
+ # Copy the current directory contents into the container at $HOME/app setting the owner to the user
21
+ COPY --chown=user . $HOME/app
22
+
23
+ # Install any needed packages specified in requirements.txt
24
+ RUN pip install --no-cache-dir -r requirements.txt
25
+
26
+ # Create the .streamlit directory
27
+ RUN mkdir -p .streamlit
28
+
29
+ # Create the config.toml file and set the maxMessageSize
30
+ RUN echo "\
31
+ [server]\n\
32
+ maxMessageSize = 2000\n\
33
+ " > .streamlit/config.toml
34
+
35
+ # Make port 8501 available to the world outside this container
36
+ EXPOSE 8501
37
+
38
+ # Run filter_data_app.py when the container launches
39
+ CMD streamlit run dcm2parquet_app.py
requirements.txt ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ pydicom
2
+ polars
3
+ pyarrow
4
+ duckdb
5
+ pandas
6
+ streamlit
7
+ idc-index