Vishalpainjane's picture
Create Dockerfile
fc7a9f1 verified
raw
history blame contribute delete
527 Bytes
# Use an official Python runtime as a parent image
FROM python:3.9-slim
# Set the working directory in the container
WORKDIR /app
# Copy the requirements file into the container at /app
COPY requirements.txt /app/
# Upgrade pip and install the dependencies
RUN python -m pip install --upgrade pip && \
pip install --no-cache-dir -r requirements.txt
# Copy the current directory contents into the container at /app
COPY . /app
# Run the specified command within the container
CMD ["python", "my_huggingface_script.py"]