Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions s.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
edition: 1.0.0
name: my-framework-app
access: default
services:
framework:
component: fc
props:
region: cn-shenzhen
service:
name: serverless-devs-application
function:
name: fc-stable-diffuson-9tv6
description: Initialize
runtime: custom
environmentVariables:
PATH: >-
/opt/python3.10/bin:/usr/local/bin/apache-maven/bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/ruby/bin:/opt/bin:/code:/code/bin
PYTHONPATH: /opt/python:/code
LD_LIBRARY_PATH: >-
/code:/code/lib:/usr/local/lib:/opt/lib:/opt/php8.1/lib:/opt/php8.0/lib:/opt/php7.2/lib
layers:
- acs:fc:cn-shenzhen:official:layers/Python310/versions/2
- >-
acs:fc:cn-shenzhen:official:layers/Python310-Package-Collection/versions/2
- acs:fc:cn-shenzhen:official:layers/Python3-Flask2x/versions/2
memorySize: 128
cpu: 0.05
timeout: 60
codeUri: ./
diskSize: 512
caPort: 9000
customRuntimeConfig:
command:
- python
args:
- app.py
triggers:
- name: httpTrigger
type: http
config:
authType: anonymous
methods:
- GET
- POST
- PUT
- DELETE
- HEAD
- PATCH
4 changes: 2 additions & 2 deletions src/code/images/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ RUN --mount=type=cache,target=/var/cache/apt \
ENV ROOT=/stable-diffusion-webui


ENV SHA=v1.5.1
ENV SHA=v1.6.0
RUN --mount=type=cache,target=/root/.cache/pip \
git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git /stable-diffusion-webui && \
cd stable-diffusion-webui && \
Expand Down Expand Up @@ -230,4 +230,4 @@ COPY --from=model-base-download /JapaneseDollLikeness.safetensors ${SD_BUILTIN}/
COPY --from=model-base-download /chilloutmix_NiPrunedFp16Fix.safetensors ${SD_BUILTIN}/models/Stable-diffusion/chilloutmix_NiPrunedFp16Fix.safetensors

RUN sed -i ${SD_BUILTIN}/config.json -e '[email protected] \[c6bbc15e32\]@chilloutmix_NiPrunedFp16Fix.safetensors \[59ffe2243a\]@'
RUN sed -i ${SD_BUILTIN}/config.json -e 's@c6bbc15e3224e6973459ba78de4998b80b50112b0ae5b5c67113d56b4e366b19@59ffe2243a25c9fe137d590eb3c5c3d3273f1b4c86252da11bbdc9568773da0c@'
RUN sed -i ${SD_BUILTIN}/config.json -e 's@c6bbc15e3224e6973459ba78de4998b80b50112b0ae5b5c67113d56b4e366b19@59ffe2243a25c9fe137d590eb3c5c3d3273f1b4c86252da11bbdc9568773da0c@'