Skip to content

Commit

Permalink
build: update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
a3305 committed Sep 28, 2023
1 parent 7a75c69 commit b87f53f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,16 @@ RUN pip install --no-cache-dir -r requirements_full.txt
# Copy the config.example.json to src/config.json
RUN cp /app/config_example/config.example.json /app/src/config.json

# 使用sed命令更改API_KEY的值
# change config.json API_KEY value to empty string
# RUN sed -i 's/\"API_KEY\": \".*\"/\"API_KEY\": \"\"/' /app/src/config.json

# Change into the cloned repository
WORKDIR /app/src


ENV GRADIO_SERVER_NAME=0.0.0.0
ENV GRADIO_SERVER_PORT=7860

# Make port 7860 available to the world outside this container
EXPOSE 7860

Expand Down

0 comments on commit b87f53f

Please sign in to comment.