From 9ce8928d82d6071151da2e7821e83e9b0dd0655d Mon Sep 17 00:00:00 2001 From: Logan Cusano Date: Mon, 29 Apr 2024 23:25:34 -0400 Subject: [PATCH] Revert base image and add global gyp install --- server/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/Dockerfile b/server/Dockerfile index 5457f7a..dd3de19 100644 --- a/server/Dockerfile +++ b/server/Dockerfile @@ -1,5 +1,5 @@ # Use the official Node.js image as the base image -FROM alpine:latest +FROM node:20 # Set the working directory inside the container WORKDIR /server @@ -8,6 +8,7 @@ WORKDIR /server COPY package*.json ./ # Install dependencies +RUN npm install -g node-gyp RUN npm install # Copy the rest of the application code to the working directory