ARG IMAGE=hlky/sd-webui:base FROM ${IMAGE} WORKDIR /workdir SHELL ["/bin/bash", "-c"] ENV PYTHONPATH=/sd EXPOSE 8501 COPY ./data/DejaVuSans.ttf /usr/share/fonts/truetype/ COPY ./configs/ /sd/configs/ COPY ./data/ /sd/data/ COPY ./frontend/ /sd/frontend/ COPY ./gfpgan/ /sd/gfpgan/ COPY ./images/ /sd/images/ COPY ./ldm/ /sd/ldm/ COPY ./models/ /sd/models/ COPY ./scripts/ /sd/scripts/ COPY ./.streamlit/ /sd/.streamlit/ COPY ./runpod_entrypoint.sh /sd/entrypoint.sh ENTRYPOINT /sd/entrypoint.sh RUN mkdir -p ~/.streamlit/ RUN echo "[general]" > ~/.streamlit/credentials.toml RUN echo "email = \"\"" >> ~/.streamlit/credentials.toml