space-build / Dockerfile
coyotte508
first commit
903c838
raw
history blame
728 Bytes
# Use a base image with Python and Node.js pre-installed
FROM node:22-bullseye-slim
# Install Python and pip
RUN apt-get update && apt-get install -y --no-install-recommends \
python3 \
python3-pip \
&& rm -rf /var/lib/apt/lists/*
# Install corepack (for pnpm and yarn) and make them available
RUN corepack enable \
&& corepack prepare pnpm@latest --activate \
&& corepack prepare yarn@latest --activate
# Install huggingface_hub and huggingface_hub[cli]
RUN pip install -U "huggingface_hub[cli]"
# Define a working directory
WORKDIR /app
# Copy the script that will handle the build process
COPY build.sh /app/build.sh
RUN chmod +x /app/build.sh
# Command to run the build script
CMD ["/app/build.sh"]