update 1
Browse files- Dockerfile +21 -2
Dockerfile
CHANGED
@@ -10,8 +10,27 @@ COPY . /code
|
|
10 |
# Install any needed packages specified in requirements.txt
|
11 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
12 |
|
13 |
-
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
RUN chmod +x /code/start_linux.sh
|
15 |
|
16 |
-
# Run the
|
17 |
CMD ["/code/start_linux.sh"]
|
|
|
10 |
# Install any needed packages specified in requirements.txt
|
11 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
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 |
+
# Copy the Miniconda installer script
|
18 |
+
# Assuming you have it in your project directory; if not, you'll need to download it
|
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 /code/installer_files/miniconda_installer.sh
|
23 |
+
|
24 |
+
# Install Miniconda
|
25 |
+
RUN /code/installer_files/miniconda_installer.sh -b -p /code/installer_files/conda
|
26 |
+
|
27 |
+
# Make sure the conda binary is executable and in the PATH
|
28 |
+
ENV PATH="/code/installer_files/conda/bin:${PATH}"
|
29 |
+
|
30 |
+
# Continue with any other setup you need...
|
31 |
+
|
32 |
+
# Make sure the start script is executable
|
33 |
RUN chmod +x /code/start_linux.sh
|
34 |
|
35 |
+
# Run the start script when the container launches
|
36 |
CMD ["/code/start_linux.sh"]
|