File size: 497 Bytes
5aa316f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Use an NVIDIA CUDA base image with CUDA 11.8 and Ubuntu 20.04
FROM mhamilton723/featup:latest

# Set a working directory
WORKDIR /app

RUN pip3 install gradio

# Copy your application files into the container
COPY . /app

# Expose the port Streamlit will run on
EXPOSE 7860

RUN mkdir -m 700 flagged

ENV PYTHONUNBUFFERED=1 \
	GRADIO_ALLOW_FLAGGING=never \
	GRADIO_NUM_PORTS=1 \
	GRADIO_SERVER_NAME=0.0.0.0 \
	SYSTEM=spaces

# Set the command to run your Streamlit app
CMD ["python3", "app.py"]