marquesafonso commited on
Commit
4daea6c
Β·
1 Parent(s): 4b9d7a9

move to docker sdk

Browse files
Files changed (5) hide show
  1. .gitignore +0 -2
  2. Dockerfile +23 -0
  3. README.md +2 -2
  4. docker-compose.yml +9 -0
  5. packages.txt +0 -1
.gitignore CHANGED
@@ -3,6 +3,4 @@
3
  pyproject.toml
4
  uv.lock
5
  */__pycache__/
6
- Dockerfile
7
- docker-compose.yml
8
  .gradio
 
3
  pyproject.toml
4
  uv.lock
5
  */__pycache__/
 
 
6
  .gradio
Dockerfile ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use an official Python runtime as a parent image
2
+ FROM python:3.12-slim-bullseye
3
+
4
+ USER root
5
+
6
+ # Set the working directory in the container to /app
7
+ WORKDIR /app
8
+
9
+ # Copy the current directory contents into the container at /app
10
+ COPY --chown=user . /app
11
+
12
+ #Install ImageMagick
13
+ RUN apt-get update && apt-get install -y imagemagick && sed -i '91d' /etc/ImageMagick-6/policy.xml
14
+ # Install any needed packages specified in requirements.txt
15
+ RUN pip install --no-cache-dir -r requirements.txt
16
+
17
+ # Make port 8000 available to the world outside this container
18
+ EXPOSE 7860
19
+
20
+ # Run main.py when the container launches
21
+ CMD ["python", "main.py"]
22
+
23
+ USER 1001
README.md CHANGED
@@ -3,9 +3,9 @@ title: Multilang Asr Transcriber
3
  emoji: πŸ‘
4
  colorFrom: gray
5
  colorTo: blue
6
- sdk: gradio
7
- sdk_version: 5.1.0
8
  app_file: app.py
 
9
  pinned: true
10
  license: cc-by-nc-4.0
11
  short_description: A multilingual automatic speech transcription tool
 
3
  emoji: πŸ‘
4
  colorFrom: gray
5
  colorTo: blue
6
+ sdk: docker
 
7
  app_file: app.py
8
+ app_port: 7860
9
  pinned: true
10
  license: cc-by-nc-4.0
11
  short_description: A multilingual automatic speech transcription tool
docker-compose.yml ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ services:
2
+ app:
3
+ build:
4
+ context: .
5
+ dockerfile: Dockerfile
6
+ ports:
7
+ - "7860:7860"
8
+ volumes:
9
+ - .:/app
packages.txt DELETED
@@ -1 +0,0 @@
1
- imagemagick