Spaces:
Build error
Build error
Commit ·
9e988d1
1
Parent(s): 7837144
add files
Browse filesFiles changed (2)
- DockerfileAdded+39
- requirements.txtAdded+7
123456789101112131415161718192021222324252627282930313233343536373839# Use an official Python runtime as a parent imageFROM python:3.12.3
# Set up a new user named "user" with user ID 1000RUN useradd -m -u 1000 user
# Switch to the "user" userUSER user
# Set home to the user's home directoryENV HOME=/home/user \ PATH=/home/user/.local/bin:$PATH
# Set the working directory to the user's home directoryWORKDIR $HOME/app
# Try and run pip command after setting the user with `USER user` to avoid permission issues with PythonRUN pip install --no-cache-dir --upgrade pip
# Copy the current directory contents into the container at $HOME/app setting the owner to the userCOPY --chown=user . $HOME/app
# Install any needed packages specified in requirements.txtRUN pip install --no-cache-dir -r requirements.txt
# Create the .streamlit directoryRUN mkdir -p .streamlit
# Create the config.toml file and set the maxMessageSizeRUN echo "\[server]\n\maxMessageSize = 2000\n\" > .streamlit/config.toml
# Make port 8501 available to the world outside this containerEXPOSE 8501
# Run filter_data_app.py when the container launchesCMD streamlit run dcm2parquet_app.py1234567pydicompolarspyarrowduckdbpandasstreamlitidc-indexDockerfileAdded+39
requirements.txtAdded+7