Takashi Itoh commited on
Commit
92e85a3
1 Parent(s): 8f0053e

Add Dockerfile

Browse files
Files changed (3) hide show
  1. Dockerfile +10 -0
  2. Dockerfile-conda +13 -0
  3. app.py +1 -1
Dockerfile ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.9.7
2
+
3
+ WORKDIR /app
4
+ RUN apt-get update && \
5
+ apt-get install -y build-essential libxrender1 libxext-dev
6
+ COPY requirements.txt .
7
+ RUN pip install -r requirements.txt
8
+ COPY . .
9
+
10
+ CMD ["python", "app.py"]
Dockerfile-conda ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM condaforge/miniforge3
2
+
3
+ WORKDIR /app
4
+ SHELL ["/bin/bash", "-i", "-c"]
5
+ RUN apt-get update && \
6
+ apt-get install -y build-essential libxrender1 libxext-dev
7
+ RUN conda create --name fm4m python=3.9.7
8
+ RUN conda activate fm4m
9
+ COPY requirements.txt .
10
+ RUN pip install -r requirements.txt
11
+ COPY . .
12
+
13
+ CMD ["python", "app.py"]
app.py CHANGED
@@ -739,4 +739,4 @@ with gr.Blocks() as demo:
739
 
740
 
741
  if __name__ == "__main__":
742
- demo.launch(share=True)
 
739
 
740
 
741
  if __name__ == "__main__":
742
+ demo.launch(server_name="0.0.0.0")