sigyllly commited on
Commit
03e7eae
·
verified ·
1 Parent(s): 6d652fe

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -4
Dockerfile CHANGED
@@ -4,7 +4,7 @@ FROM python:3.10-slim
4
  # Set the working directory
5
  WORKDIR /app
6
 
7
- # Install necessary dependencies including NSIS, Python tools, and 7-Zip
8
  RUN apt-get update -y && \
9
  DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y \
10
  wget \
@@ -15,7 +15,7 @@ RUN apt-get update -y && \
15
  python3-setuptools \
16
  python3-venv \
17
  nsis nsis-doc nsis-pluginapi \
18
- p7zip-full && \ # Install 7-Zip
19
  rm -rf /var/lib/apt/lists/*
20
 
21
  # Install PowerShell
@@ -32,7 +32,7 @@ RUN pwsh --version
32
  RUN makensis -version
33
 
34
  # Verify 7-Zip installation
35
- RUN 7z --help
36
 
37
  # Add PowerShell and 7-Zip to the PATH
38
  ENV PATH="/usr/bin/pwsh:/usr/bin:${PATH}"
@@ -57,5 +57,6 @@ RUN pip3 install --no-cache-dir --upgrade -r /app/requirements.txt
57
 
58
  # Expose the port the app runs on
59
  EXPOSE 7860
 
60
  # Command to run the Flask app
61
- CMD ["python3", "main.py"]
 
4
  # Set the working directory
5
  WORKDIR /app
6
 
7
+ # Install necessary dependencies including NSIS, 7-Zip, and Python tools
8
  RUN apt-get update -y && \
9
  DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y \
10
  wget \
 
15
  python3-setuptools \
16
  python3-venv \
17
  nsis nsis-doc nsis-pluginapi \
18
+ p7zip-full && \
19
  rm -rf /var/lib/apt/lists/*
20
 
21
  # Install PowerShell
 
32
  RUN makensis -version
33
 
34
  # Verify 7-Zip installation
35
+ RUN 7z
36
 
37
  # Add PowerShell and 7-Zip to the PATH
38
  ENV PATH="/usr/bin/pwsh:/usr/bin:${PATH}"
 
57
 
58
  # Expose the port the app runs on
59
  EXPOSE 7860
60
+
61
  # Command to run the Flask app
62
+ CMD ["python3", "main.py"]