Vishalpainjane commited on
Commit
fc7a9f1
·
verified ·
1 Parent(s): c6ad044

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +18 -0
Dockerfile ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use an official Python runtime as a parent image
2
+ FROM python:3.9-slim
3
+
4
+ # Set the working directory in the container
5
+ WORKDIR /app
6
+
7
+ # Copy the requirements file into the container at /app
8
+ COPY requirements.txt /app/
9
+
10
+ # Upgrade pip and install the dependencies
11
+ RUN python -m pip install --upgrade pip && \
12
+ pip install --no-cache-dir -r requirements.txt
13
+
14
+ # Copy the current directory contents into the container at /app
15
+ COPY . /app
16
+
17
+ # Run the specified command within the container
18
+ CMD ["python", "my_huggingface_script.py"]