Update Dockerfile
This commit is contained in:
parent
dcc2e24f5c
commit
fce146ab68
|
@ -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…
Reference in New Issue