xc1
Browse files- Dockerfile +13 -16
Dockerfile
CHANGED
@@ -1,28 +1,25 @@
|
|
1 |
# Use an official Python runtime as a parent image
|
2 |
FROM python:3.9
|
3 |
|
4 |
-
#
|
5 |
-
|
|
|
6 |
|
7 |
-
#
|
8 |
-
|
|
|
9 |
|
10 |
# Install any needed packages specified in requirements.txt
|
11 |
-
RUN pip install --no-cache-dir --upgrade -r
|
12 |
-
|
13 |
-
# Create the installer_files directory with the correct permissions
|
14 |
-
RUN mkdir -p /code/installer_files \
|
15 |
-
&& chmod 777 /code/installer_files
|
16 |
|
17 |
-
#
|
18 |
-
|
19 |
-
COPY Miniconda3-py310_23.3.1-0-Linux-x86_64.sh /code/installer_files/miniconda_installer.sh
|
20 |
|
21 |
# Make sure the installer script is executable
|
22 |
-
RUN chmod +x
|
23 |
|
24 |
# Install Miniconda
|
25 |
-
RUN
|
26 |
|
27 |
# Make sure the conda binary is executable and in the PATH
|
28 |
ENV PATH="/code/installer_files/conda/bin:${PATH}"
|
@@ -30,7 +27,7 @@ ENV PATH="/code/installer_files/conda/bin:${PATH}"
|
|
30 |
# Continue with any other setup you need...
|
31 |
|
32 |
# Make sure the start script is executable
|
33 |
-
RUN chmod +x
|
34 |
|
35 |
# Run the start script when the container launches
|
36 |
-
CMD ["
|
|
|
1 |
# Use an official Python runtime as a parent image
|
2 |
FROM python:3.9
|
3 |
|
4 |
+
# Install git
|
5 |
+
RUN apt-get update && \
|
6 |
+
apt-get install -y git
|
7 |
|
8 |
+
# Clone the repository
|
9 |
+
WORKDIR /code
|
10 |
+
RUN git clone https://github.com/oobabooga/text-generation-webui.git .
|
11 |
|
12 |
# Install any needed packages specified in requirements.txt
|
13 |
+
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
|
|
|
|
|
|
|
|
14 |
|
15 |
+
# Download the Miniconda installer script
|
16 |
+
RUN wget https://repo.anaconda.com/miniconda/Miniconda3-py310_23.3.1-0-Linux-x86_64.sh -O installer_files/miniconda_installer.sh
|
|
|
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 |
# Make sure the conda binary is executable and in the PATH
|
25 |
ENV PATH="/code/installer_files/conda/bin:${PATH}"
|
|
|
27 |
# Continue with any other setup you need...
|
28 |
|
29 |
# Make sure the start script is executable
|
30 |
+
RUN chmod +x start_linux.sh
|
31 |
|
32 |
# Run the start script when the container launches
|
33 |
+
CMD ["./start_linux.sh"]
|