Spaces:
Sleeping

fbox / Dockerfile
fkhf's picture
Update Dockerfile
16d7f65 verified
Raw History Blame Contribute Delete
361 Bytes
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 '*'"]