Skip to content

Commit

Permalink
fix: Adapter Base Image to Include Basic Utilities (#461)
Browse files Browse the repository at this point in the history
**Reason for Change**:
 Adapter Base Image to Include Basic Utilities

Signed-off-by: Ishaan Sehgal <ishaanforthewin@gmail.com>
  • Loading branch information
ishaansehgal99 authored Jun 6, 2024
1 parent faa1fc7 commit 8f068a3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pkg/tuning/preset-tuning.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,10 @@ while true; do
cp -r "$PARENT_DIR/adapter_model.safetensors" "$TEMP_CONTEXT/adapter_model.safetensors"
# Create a minimal Dockerfile
echo 'FROM scratch
ADD adapter_config.json /
ADD adapter_model.safetensors /' > "$TEMP_CONTEXT/Dockerfile"
echo 'FROM busybox:latest
RUN mkdir -p /data
ADD adapter_config.json /data/
ADD adapter_model.safetensors /data/' > "$TEMP_CONTEXT/Dockerfile"
docker build -t %s "$TEMP_CONTEXT"
docker push %s
Expand Down

0 comments on commit 8f068a3

Please sign in to comment.