image-gen / Dockerfile
BeveledCube's picture
Turned it into a flask API
ba11222
raw
history blame
264 Bytes
FROM python:3.11
WORKDIR /api
COPY --chown=user ./ /api/
RUN pip install --upgrade pip
RUN pip install -r requirements.txt
RUN mkdir /api/cache
RUN chmod a+rwx /api/cache
RUN mkdir /api/models
RUN chmod a+rwx /api/models
EXPOSE 7860
CMD ["bash", "start.sh"]