sigyllly commited on
Commit
d3a0e86
·
verified ·
1 Parent(s): 0344861

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -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 and Python tools
8
  RUN apt-get update -y && \
9
  DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y \
10
  wget \
@@ -14,7 +14,8 @@ RUN apt-get update -y && \
14
  python3-pip \
15
  python3-setuptools \
16
  python3-venv \
17
- nsis nsis-doc nsis-pluginapi && \
 
18
  rm -rf /var/lib/apt/lists/*
19
 
20
  # Install PowerShell
@@ -30,8 +31,11 @@ RUN pwsh --version
30
  # Verify NSIS installation
31
  RUN makensis -version
32
 
33
- # Add PowerShell to the PATH
34
- ENV PATH="/usr/bin/pwsh:${PATH}"
 
 
 
35
 
36
  # Create necessary directories and set full permissions
37
  RUN mkdir -p /app/uploads /app/compile /files/programs /app/pe && chmod -R 777 /app /files /app/pe
 
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 \
 
14
  python3-pip \
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
 
31
  # Verify NSIS installation
32
  RUN makensis -version
33
 
34
+ # Verify 7-Zip installation
35
+ RUN 7z --version
36
+
37
+ # Add PowerShell and 7-Zip to the PATH
38
+ ENV PATH="/usr/bin/pwsh:/usr/bin:${PATH}"
39
 
40
  # Create necessary directories and set full permissions
41
  RUN mkdir -p /app/uploads /app/compile /files/programs /app/pe && chmod -R 777 /app /files /app/pe