Openyx commited on
Commit
bea75d9
·
verified ·
1 Parent(s): 3af411d

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -4
Dockerfile CHANGED
@@ -6,11 +6,12 @@ ENV DEBIAN_FRONTEND=noninteractive \
6
  DOTNET_NUGET_SIGNATURE_VERIFICATION=false \
7
  NODE_OPTIONS="--max-old-space-size=4096"
8
 
9
- # 1. System packages + git + ClamAV
10
  RUN apt-get update && apt-get install -y \
11
  curl wget gnupg ca-certificates apt-transport-https \
12
  supervisor nginx unzip git \
13
  clamav clamav-daemon clamav-freshclam \
 
14
  && rm -rf /var/lib/apt/lists/*
15
 
16
  # 2. MongoDB 4.4
@@ -29,7 +30,7 @@ RUN wget https://releases.hashicorp.com/consul/1.8.0/consul_1.8.0_linux_amd64.zi
29
  && mv consul /usr/local/bin/ \
30
  && rm consul_1.8.0_linux_amd64.zip
31
 
32
- # 5. .NET 5 SDK (manual installation from archive)
33
  ENV DOTNET_SDK_VERSION=5.0.408
34
  RUN wget https://dotnetcli.azureedge.net/dotnet/Sdk/$DOTNET_SDK_VERSION/dotnet-sdk-$DOTNET_SDK_VERSION-linux-x64.tar.gz \
35
  && mkdir -p /usr/share/dotnet \
@@ -56,7 +57,7 @@ RUN dotnet restore MalwareMultiScan.sln --disable-parallel \
56
  RUN dotnet build MalwareMultiScan.sln -c Release --no-restore -v minimal \
57
  || (echo "BUILD FAILED. See above." && exit 1)
58
 
59
- # 10. Build the Nuxt.js UI
60
  WORKDIR /app/MalwareMultiScan.Ui
61
  RUN npm install --no-audit --no-fund --prefer-offline \
62
  && npm run build \
@@ -64,7 +65,7 @@ RUN npm install --no-audit --no-fund --prefer-offline \
64
  && cp -r dist/* /var/www/html/ \
65
  && echo "UI build completed"
66
 
67
- # 11. Nginx config (port 7860 + API proxy)
68
  RUN echo 'server { \
69
  listen 7860; \
70
  server_name _; \
 
6
  DOTNET_NUGET_SIGNATURE_VERIFICATION=false \
7
  NODE_OPTIONS="--max-old-space-size=4096"
8
 
9
+ # 1. System packages + git + ClamAV + build tools
10
  RUN apt-get update && apt-get install -y \
11
  curl wget gnupg ca-certificates apt-transport-https \
12
  supervisor nginx unzip git \
13
  clamav clamav-daemon clamav-freshclam \
14
+ build-essential \
15
  && rm -rf /var/lib/apt/lists/*
16
 
17
  # 2. MongoDB 4.4
 
30
  && mv consul /usr/local/bin/ \
31
  && rm consul_1.8.0_linux_amd64.zip
32
 
33
+ # 5. .NET 5 SDK
34
  ENV DOTNET_SDK_VERSION=5.0.408
35
  RUN wget https://dotnetcli.azureedge.net/dotnet/Sdk/$DOTNET_SDK_VERSION/dotnet-sdk-$DOTNET_SDK_VERSION-linux-x64.tar.gz \
36
  && mkdir -p /usr/share/dotnet \
 
57
  RUN dotnet build MalwareMultiScan.sln -c Release --no-restore -v minimal \
58
  || (echo "BUILD FAILED. See above." && exit 1)
59
 
60
+ # 10. Build the Nuxt.js UI (now with make/gcc available)
61
  WORKDIR /app/MalwareMultiScan.Ui
62
  RUN npm install --no-audit --no-fund --prefer-offline \
63
  && npm run build \
 
65
  && cp -r dist/* /var/www/html/ \
66
  && echo "UI build completed"
67
 
68
+ # 11. Nginx config
69
  RUN echo 'server { \
70
  listen 7860; \
71
  server_name _; \