Spaces:
Sleeping
Sleeping
File size: 497 Bytes
cee2d66 a78bbf8 cee2d66 a78bbf8 cee2d66 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# Use the PyTorch base image
FROM pytorch/pytorch:latest
# Create a new user
RUN useradd -m -u 1000 user
USER user
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH
# Set the working directory inside the container
WORKDIR /app
# Copy the current directory into the container
COPY --chown=user . /app
# Install necessary Python packages
RUN pip install --no-cache-dir -e .[gradio]
# Set the entrypoint for the container to launch your Gradio app
CMD ["python", "demo/app_januspro.py"] |