File size: 491 Bytes
cfe9197
 
0ad107a
53cb30a
 
261d368
cfe9197
 
 
5f859a0
 
261d368
 
 
 
 
5f859a0
3221a35
 
0ad107a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM ghcr.io/ep9io/rustpipe:main

ENV RUSTPIPE_LOG=DEBUG
ENV RUSTPIPE_WORKSPACE_DIR=/workspace
ENV RUSTPIPE_DATA_DIR=/data
ENV PORT=7860

WORKDIR /workspace

# Hugging Face Spaces runs as a non-root user (UID 1000).
# The base image already creates a 'rustpipe' user with UID 1000,
# but we ensure the workspace is writable by this user.
USER root
RUN chown -R 1000:1000 /workspace
USER 1000

# clears the entrypoint from the base image
ENTRYPOINT []

CMD rustpipe server --bind 0.0.0.0:7860