morgankavanagh commited on
Commit
1efe64c
·
1 Parent(s): 23655c3

Add myvenv to .gitignore

Browse files
Files changed (2) hide show
  1. .gitignore +0 -0
  2. Dockerfile +23 -0
.gitignore ADDED
File without changes
Dockerfile CHANGED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Base image
2
+ FROM python:3.9
3
+
4
+ # Create a non-root user
5
+ RUN useradd -m -u 1000 user
6
+ USER user
7
+ ENV PATH="/home/user/.local/bin:$PATH"
8
+
9
+ # Set the working directory
10
+ WORKDIR /app
11
+
12
+ # Copy and install dependencies
13
+ COPY --chown=user ./requirements.txt requirements.txt
14
+ RUN pip install --no-cache-dir --upgrade -r requirements.txt
15
+
16
+ # Copy the project files
17
+ COPY --chown=user . /app
18
+
19
+ # Install your package locally
20
+ RUN pip install --no-cache-dir .
21
+
22
+ # Command to run the app
23
+ CMD ["python", "-m", "gradio", "interface:demo", "--server.port", "7860", "--server.host", "0.0.0.0"]