banao-tech commited on
Commit
b5c6aca
·
verified ·
1 Parent(s): 61701f7

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -0
Dockerfile CHANGED
@@ -1,3 +1,10 @@
 
 
 
 
 
 
 
1
  FROM registry.hf.space/microsoft-omniparser:latest
2
 
3
  USER root
 
1
+ # Authenticate to Hugging Face Docker registry
2
+ ARG HF_TOKEN
3
+ ARG HF_USERNAME
4
+ FROM alpine:latest as auth
5
+ RUN apk add --no-cache docker-cli
6
+ RUN echo "$HF_TOKEN" | docker login registry.huggingface.co -u $HF_USERNAME --password-stdin
7
+
8
  FROM registry.hf.space/microsoft-omniparser:latest
9
 
10
  USER root