Spaces:
Sleeping
Sleeping
File size: 515 Bytes
a1a454c 74cb6a6 238a65e 74cb6a6 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
FROM intelligencenoborders/scinobo-sdg-classifier:v0.1.0
# Add user
RUN useradd -m -u 1000 user
RUN chown -R user /app
USER user
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH
# Set the working directory in the container
WORKDIR /app/src
# Expose the port that Gradio will run on
EXPOSE 7860
ENV PYTHONUNBUFFERED=1 \
GRADIO_ALLOW_FLAGGING=never \
GRADIO_NUM_PORTS=1 \
GRADIO_SERVER_NAME=0.0.0.0 \
SYSTEM=spaces
# Run app.py when the container launches
CMD ["python", "-m", "sdg.server.gradio_app"] |