From 739ef36f7392fa9bf3c00c4cf3693ce4a67aaf7e Mon Sep 17 00:00:00 2001 From: lklynet Date: Thu, 1 Jan 2026 22:51:35 -0500 Subject: [PATCH] how tf does docker even work --- Dockerfile | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index ffbce08..a09b742 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,14 +1,18 @@ -FROM node:18-alpine +FROM node:18-slim WORKDIR /app # Install build dependencies -RUN apk add --no-cache python3 make g++ linux-headers +RUN apt-get update && apt-get install -y \ + python3 \ + make \ + g++ \ + && rm -rf /var/lib/apt/lists/* COPY package*.json ./ -# Install dependencies and rebuild native modules -RUN npm install --production && npm rebuild +# Install dependencies +RUN npm install --production COPY server.js ./