Update Dockerfile
Browse files- Dockerfile +12 -17
Dockerfile
CHANGED
@@ -6,28 +6,23 @@ RUN apt-get update && \
|
|
6 |
apt-get install -y git
|
7 |
|
8 |
# Clone the repository
|
9 |
-
|
10 |
-
|
|
|
|
|
11 |
|
12 |
# Install any needed packages specified in requirements.txt
|
13 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
14 |
|
15 |
-
#
|
16 |
-
|
17 |
-
|
18 |
-
# Make sure the installer script is executable
|
19 |
-
RUN chmod +x installer_files/miniconda_installer.sh
|
20 |
-
|
21 |
-
# Install Miniconda
|
22 |
-
RUN ./installer_files/miniconda_installer.sh -b -p /code/installer_files/conda
|
23 |
|
24 |
-
#
|
25 |
-
|
26 |
|
27 |
-
|
28 |
|
29 |
-
# Make sure the start script is executable
|
30 |
-
RUN chmod +x start_linux.sh
|
31 |
|
32 |
-
#
|
33 |
-
CMD ["
|
|
|
6 |
apt-get install -y git
|
7 |
|
8 |
# Clone the repository
|
9 |
+
RUN git clone https://github.com/oobabooga/text-generation-webui.git /app
|
10 |
+
|
11 |
+
# Set the working directory in the container
|
12 |
+
WORKDIR /app
|
13 |
|
14 |
# Install any needed packages specified in requirements.txt
|
15 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
16 |
|
17 |
+
# Run the one_click.py script to set up the environment and install dependencies
|
18 |
+
# Ensure that one_click.py is executable and configured to run non-interactively
|
19 |
+
RUN python one_click.py
|
|
|
|
|
|
|
|
|
|
|
20 |
|
21 |
+
# (Optional) Expose the port your app runs on
|
22 |
+
EXPOSE 7860
|
23 |
|
24 |
+
docker build -t text-generation-webui .
|
25 |
|
|
|
|
|
26 |
|
27 |
+
# Command to run when starting the container
|
28 |
+
CMD ["python", "app/main.py"]
|