From 5214b111f388ce5f4b25b6cb9d8579dbfcb98303 Mon Sep 17 00:00:00 2001 From: ABeltramo Date: Sun, 20 Aug 2023 20:45:43 +0100 Subject: [PATCH] fix: changed base image to NodeJS 18 fixes #5 --- cloudtube.Dockerfile | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/cloudtube.Dockerfile b/cloudtube.Dockerfile index eb28fcb..1986e1d 100644 --- a/cloudtube.Dockerfile +++ b/cloudtube.Dockerfile @@ -1,16 +1,15 @@ -FROM node:20-alpine +FROM node:18-slim WORKDIR /workdir COPY package.json ./package.json COPY package-lock.json ./package-lock.json -# better-sqlite3 needs node-gyp in order to compile: -# see: https://github.com/WiseLibs/better-sqlite3/issues/1027#issuecomment-1621200576 -RUN apk --update --no-cache add git python3 build-base alpine-sdk && \ - npm install -g node-gyp \ +RUN apt-get update -y && \ + apt-get install -y git python3 build-essential && \ npm install && \ - apk del git python3 alpine-sdk build-base + apt-get remove -y --purge git python3 build-essential + COPY . .