Skip to content

Commit 09c2880

Browse files
authored
Merge branch 'main' into add-user-id-to-open-ai-requests
2 parents 2963d39 + 9ad4110 commit 09c2880

3 files changed

Lines changed: 136 additions & 187 deletions

File tree

Dockerfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
1-
FROM node:lts-alpine
1+
# using slim instead of alpine for better compatibility with optional dependencies
2+
FROM node:lts-slim
23

34
ENV NODE_OPTIONS="--max-old-space-size=4096"
45

5-
RUN apk add --no-cache python3 make g++ git
6+
RUN apt-get update && apt-get install -y python3 make g++ git && rm -rf /var/lib/apt/lists/*
67

78
WORKDIR /app
89

9-
COPY package.json .npmrc ./
10-
RUN npm install
10+
COPY package.json package-lock.json .npmrc ./
11+
RUN npm ci --prefer-offline
1112

1213
COPY *.ts *.json ./
1314
COPY ./public/ ./public/

0 commit comments

Comments
 (0)