sashtech commited on
Commit
f09c54d
·
verified ·
1 Parent(s): 62d98ac

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +23 -0
Dockerfile CHANGED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use an official Python runtime as a parent image
2
+ FROM python:3.10
3
+
4
+ # Set the working directory in the container
5
+ WORKDIR /app
6
+
7
+ # Copy the current directory contents into the container at /app
8
+ COPY . /app
9
+
10
+ # Install system dependencies (if needed, like Java for language-tool-python)
11
+ RUN apt-get update && apt-get install -y \
12
+ default-jre \
13
+ && rm -rf /var/lib/apt/lists/*
14
+
15
+ # Install any needed packages specified in requirements.txt
16
+ COPY requirements.txt /app/requirements.txt
17
+ RUN pip install --no-cache-dir -r requirements.txt
18
+
19
+ # Make port 7860 available to the world outside this container (default Gradio port)
20
+ EXPOSE 7860
21
+
22
+ # Run Gradio app (replace 'app.py' with your actual app script name)
23
+ CMD ["python", "app.py"]