litagin's picture
Fix port
5d9562a
raw
history blame contribute delete
627 Bytes
# Hugging face spaces (CPU) ใงใ‚จใƒ‡ใ‚ฃใ‚ฟ (server_editor.py) ใฎใƒ‡ใƒ—ใƒญใ‚ค็”จ
# See https://huggingface.co/docs/hub/spaces-sdks-docker-first-demo
FROM python:3.10
RUN useradd -m -u 1000 user
USER user
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH
WORKDIR $HOME/app
RUN pip install --no-cache-dir --upgrade pip
COPY --chown=user . $HOME/app
RUN pip install --no-cache-dir -r $HOME/app/requirements.txt
# ๅฟ…่ฆใซๅฟœใ˜ใฆๅˆถ้™ใ‚’ๅค‰ๆ›ดใ—ใฆใใ ใ•ใ„
CMD ["python", "server_editor.py", "--line_length", "50", "--line_count", "3", "--skip_static_files", "--skip_default_models", "--port", "7860"]