sorset / Dockerfile
forum1's picture
Update Dockerfile
69b33ab verified
raw
history blame
596 Bytes
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"]