File size: 596 Bytes
e60da57 a85b3da e60da57 69b33ab e60da57 69b33ab e60da57 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
FROM python:3.10-slim-buster
# Install dependencies
# RUN apt-get update && apt-get install -y wget
RUN apt-get update && apt-get install -y wget unzip
# Clone the Transformers library
RUN wget https://github.com/huggingface/transformers/archive/refs/heads/main.zip -O transformers.zip
RUN unzip transformers.zip -d transformers
RUN rm transformers.zip
WORKDIR /app
# Install the Transformers library
# WORKDIR transformers/transformers
# RUN pip install -e .
RUN pip install transformers
# Copy your Python script
COPY app.py .
# Set the command to run your script
CMD ["python", "app.py"] |