sorset / Dockerfile
forum1's picture
Create Dockerfile
e60da57 verified
raw
history blame
495 Bytes
FROM python:3.10-slim-buster
# Install dependencies
RUN apt-get update && apt-get install -y wget
# 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
# Install the Transformers library
WORKDIR transformers/transformers
RUN pip install -e .
# Copy your Python script
COPY app.py .
# Set the command to run your script
CMD ["python", "app.py"]