forked from kiri-art/docker-diffusers-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build
executable file
·16 lines (14 loc) · 646 Bytes
/
build
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh
# This is my common way of building, but you can build however you like.
# Note if you using a proxy, you need to have it running first.
DOCKER_BUILDKIT=1 BUILDKIT_PROGRESS=plain \
docker build -t diffusers-api \
--build-arg proxy=1 \
--build-arg HF_AUTH_TOKEN="$HF_AUTH_TOKEN" \
--build-arg AWS_ACCESS_KEY_ID="$AWS_ACCESS_KEY_ID" \
--build-arg AWS_SECRET_ACCESS_KEY="$AWS_SECRET_ACCESS_KEY" \
--build-arg AWS_DEFAULT_REGION="$AWS_DEFAULT_REGION" \
--build-arg AWS_S3_ENDPOINT_URL="$AWS_S3_ENDPOINT_URL" \
--build-arg http_proxy="http://172.17.0.1:3128" \
--build-arg https_proxy="http://172.17.0.1:3128" \
"$@" .