Skip to content

Commit

Permalink
fix: changed base image to NodeJS 18
Browse files Browse the repository at this point in the history
fixes #5
  • Loading branch information
ABeltramo committed Aug 20, 2023
1 parent 174bb97 commit 5214b11
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions cloudtube.Dockerfile
Original file line number Diff line number Diff line change
@@ -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 . .

Expand Down

0 comments on commit 5214b11

Please sign in to comment.