Spaces:
Runtime error
Runtime error
File size: 560 Bytes
cee6efa |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
FROM python:3.10-alpine3.17
RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories && \
echo "http://dl-cdn.alpinelinux.org/alpine/edge/main" >> /etc/apk/repositories && \
apk update && \
apk add --no-cache blender-headless && \
ln -s /usr/bin/blender-headless /usr/bin/blender
RUN apk add --no-cache mesa-gl mesa-egl mesa-gles mesa-dri-gallium
WORKDIR /app
RUN pip3 install --upgrade pip && \
pip3 install gunicorn flask
COPY . .
CMD ["gunicorn", "-w", "2", "server:app", "--bind", "0.0.0.0:7860"]
|