mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-11-09 06:44:45 +08:00
Update Dockerfile
Former-commit-id: fce146ab681a5682d3f96254e3863f70aca8a4af
This commit is contained in:
parent
f84bce3638
commit
cfa2dbefcb
@ -12,13 +12,14 @@ ARG PIP_INDEX=https://pypi.org/simple
|
|||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# Install the requirements
|
# Install the requirements
|
||||||
COPY requirements.txt /app/
|
COPY requirements.txt /app
|
||||||
RUN pip config set global.index-url $PIP_INDEX
|
RUN pip config set global.index-url $PIP_INDEX
|
||||||
|
RUN pip config set global.extra-index-url $PIP_INDEX
|
||||||
RUN python -m pip install --upgrade pip
|
RUN python -m pip install --upgrade pip
|
||||||
RUN python -m pip install -r requirements.txt
|
RUN python -m pip install -r requirements.txt
|
||||||
|
|
||||||
# Copy the rest of the application into the image
|
# Copy the rest of the application into the image
|
||||||
COPY . /app/
|
COPY . /app
|
||||||
|
|
||||||
# Install the LLaMA Factory
|
# Install the LLaMA Factory
|
||||||
RUN EXTRA_PACKAGES="metrics"; \
|
RUN EXTRA_PACKAGES="metrics"; \
|
||||||
@ -38,10 +39,9 @@ RUN EXTRA_PACKAGES="metrics"; \
|
|||||||
VOLUME [ "/root/.cache/huggingface/", "/app/data", "/app/output" ]
|
VOLUME [ "/root/.cache/huggingface/", "/app/data", "/app/output" ]
|
||||||
|
|
||||||
# Expose port 7860 for the LLaMA Board
|
# Expose port 7860 for the LLaMA Board
|
||||||
|
ENV GRADIO_SERVER_PORT 7860
|
||||||
EXPOSE 7860
|
EXPOSE 7860
|
||||||
|
|
||||||
# Expose port 8000 for the API service
|
# Expose port 8000 for the API service
|
||||||
|
ENV API_PORT 8000
|
||||||
EXPOSE 8000
|
EXPOSE 8000
|
||||||
|
|
||||||
# Launch LLaMA Board
|
|
||||||
CMD [ "llamafactory-cli", "webui" ]
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user