Spaces:
Sleeping

File size: 361 Bytes
72d42ff
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
16d7f65
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
FROM lanol/filecodebox:latest

USER root

RUN mkdir -p /app/data && \
    chown -R 1000:1000 /app

USER 1000

ENV HOST=0.0.0.0 \
    PORT=7860 \
    WORKERS=1 \
    LOG_LEVEL=info

EXPOSE 7860

CMD ["sh", "-c", "exec uvicorn main:app --host \"$HOST\" --port \"$PORT\" --workers \"$WORKERS\" --log-level \"$LOG_LEVEL\" --proxy-headers --forwarded-allow-ips '*'"]