diff --git a/Dockerfile b/Dockerfile index 42d6b0b..bbcbd6d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,6 +11,9 @@ RUN npm run build FROM node:18-alpine WORKDIR /app +# Install build dependencies +RUN apk add --no-cache python3 make g++ gcc + # Copy server source and dependencies WORKDIR /app COPY server/package.json ./ @@ -23,6 +26,9 @@ COPY --from=client-build /app/client/build /client/build # Create output directory RUN mkdir -p ./data/snippets +# Clean up build dependencies to reduce image size +RUN apk del python3 make g++ gcc + EXPOSE 5000 CMD ["node", "src/app.js"] \ No newline at end of file