Revert base image and add global gyp install
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user