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
|
# Use the official Node.js image as the base image
|
||||||
FROM alpine:latest
|
FROM node:20
|
||||||
|
|
||||||
# Set the working directory inside the container
|
# Set the working directory inside the container
|
||||||
WORKDIR /server
|
WORKDIR /server
|
||||||
@@ -8,6 +8,7 @@ WORKDIR /server
|
|||||||
COPY package*.json ./
|
COPY package*.json ./
|
||||||
|
|
||||||
# Install dependencies
|
# Install dependencies
|
||||||
|
RUN npm install -g node-gyp
|
||||||
RUN npm install
|
RUN npm install
|
||||||
|
|
||||||
# Copy the rest of the application code to the working directory
|
# Copy the rest of the application code to the working directory
|
||||||
|
|||||||
Reference in New Issue
Block a user