Dockerfile cmd fix
Browse files- .dockerignore +4 -0
- Dockerfile +3 -3
- docker-compose.yml +11 -0
- requirements.txt +1 -1
.dockerignore
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
venv
|
2 |
+
Dockerfile
|
3 |
+
README.md
|
4 |
+
.gitignore
|
Dockerfile
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
-
FROM python:3.
|
2 |
|
3 |
RUN apt-get update && apt-get install -y gnupg && \
|
4 |
apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 A3A48C4A && \
|
5 |
echo "deb http://ppa.launchpad.net/zeehio/festcat/ubuntu bionic main" >> /etc/apt/sources.list && \
|
6 |
echo "deb-src http://ppa.launchpad.net/zeehio/festcat/ubuntu bionic main" >> /etc/apt/sources.list && \
|
7 |
apt-get update && \
|
8 |
-
apt-get -y install lame git make autoconf automake libtool pkg-config gcc libsonic-dev ronn kramdown libpcaudio-dev libatlas-base-dev gfortran
|
9 |
|
10 |
RUN git clone -b dev-ca https://github.com/projecte-aina/espeak-ng
|
11 |
|
@@ -38,4 +38,4 @@ ENV MPLCONFIGDIR=/home/user/cache
|
|
38 |
|
39 |
EXPOSE 7860
|
40 |
|
41 |
-
CMD ["
|
|
|
1 |
+
FROM python:3.10.12-slim
|
2 |
|
3 |
RUN apt-get update && apt-get install -y gnupg && \
|
4 |
apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 A3A48C4A && \
|
5 |
echo "deb http://ppa.launchpad.net/zeehio/festcat/ubuntu bionic main" >> /etc/apt/sources.list && \
|
6 |
echo "deb-src http://ppa.launchpad.net/zeehio/festcat/ubuntu bionic main" >> /etc/apt/sources.list && \
|
7 |
apt-get update && \
|
8 |
+
apt-get -y install lame git g++ make autoconf automake libtool pkg-config gcc libsonic-dev ronn kramdown libpcaudio-dev libatlas-base-dev gfortran
|
9 |
|
10 |
RUN git clone -b dev-ca https://github.com/projecte-aina/espeak-ng
|
11 |
|
|
|
38 |
|
39 |
EXPOSE 7860
|
40 |
|
41 |
+
CMD ["python3", "-u", "app.py"]
|
docker-compose.yml
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
version: '3.9'
|
2 |
+
services:
|
3 |
+
fonetica:
|
4 |
+
build:
|
5 |
+
context: .
|
6 |
+
environment:
|
7 |
+
- GRADIO_SERVER_PORT=7860
|
8 |
+
- GRADIO_SERVER_NAME=0.0.0.0
|
9 |
+
restart: unless-stopped
|
10 |
+
ports:
|
11 |
+
- 7860:7860
|
requirements.txt
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
git+https://gitlab.bsc.es/projecte-aina/[email protected]
|
2 |
-
gradio==3.
|
3 |
espeak-phonemizer>=1.1.0,<2
|
4 |
python-dotenv==1.0.0
|
|
|
1 |
git+https://gitlab.bsc.es/projecte-aina/[email protected]
|
2 |
+
gradio==3.41.0
|
3 |
espeak-phonemizer>=1.1.0,<2
|
4 |
python-dotenv==1.0.0
|