Upload Dockerfile with huggingface_hub
Browse files- Dockerfile +6 -3
Dockerfile
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
| 1 |
# Use the official Python base image
|
| 2 |
FROM python:3.11-slim
|
| 3 |
|
|
@@ -5,10 +8,10 @@ FROM python:3.11-slim
|
|
| 5 |
ENV PYTHONDONTWRITEBYTECODE=1
|
| 6 |
ENV PYTHONUNBUFFERED=1
|
| 7 |
|
| 8 |
-
# Set working directory
|
| 9 |
WORKDIR /app
|
| 10 |
|
| 11 |
-
# Copy
|
| 12 |
COPY . /app
|
| 13 |
|
| 14 |
# Install system dependencies
|
|
@@ -22,7 +25,7 @@ RUN apt-get update && apt-get install -y \
|
|
| 22 |
RUN pip install --no-cache-dir --upgrade pip \
|
| 23 |
&& pip install --no-cache-dir -r requirements.txt
|
| 24 |
|
| 25 |
-
# Expose
|
| 26 |
EXPOSE 7860
|
| 27 |
|
| 28 |
# Run the app
|
|
|
|
| 1 |
+
|
| 2 |
+
######################## WRITE YOUR DOCKERFILE SCRIPT HERE #########################
|
| 3 |
+
|
| 4 |
# Use the official Python base image
|
| 5 |
FROM python:3.11-slim
|
| 6 |
|
|
|
|
| 8 |
ENV PYTHONDONTWRITEBYTECODE=1
|
| 9 |
ENV PYTHONUNBUFFERED=1
|
| 10 |
|
| 11 |
+
# Set the working directory in the container
|
| 12 |
WORKDIR /app
|
| 13 |
|
| 14 |
+
# Copy the current directory contents into the container at /app
|
| 15 |
COPY . /app
|
| 16 |
|
| 17 |
# Install system dependencies
|
|
|
|
| 25 |
RUN pip install --no-cache-dir --upgrade pip \
|
| 26 |
&& pip install --no-cache-dir -r requirements.txt
|
| 27 |
|
| 28 |
+
# Expose the port that Gradio will run on
|
| 29 |
EXPOSE 7860
|
| 30 |
|
| 31 |
# Run the app
|