Skip to content

Commit f1a5ac5

Browse files
committed
Using an older node base image
1 parent 5a5ea4a commit f1a5ac5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
# Use Debian-based Node.js image as the base for building
2-
FROM node:slim AS build
2+
FROM node:22-slim AS build
33

44
# Set the working directory
55
WORKDIR /usr/src/app
66

7+
ENV NODE_OPTIONS="--max-old-space-size=4096"
8+
79
# Install dependencies and SQLite
810
RUN apt-get update && apt-get install -y --no-install-recommends \
911
sqlite3 \
@@ -32,7 +34,7 @@ COPY ./ ./
3234
RUN pnpm build
3335

3436
# Use a Debian-based Node.js image for production
35-
FROM node:slim AS production
37+
FROM node:22-slim AS production
3638

3739
# Set the working directory
3840
WORKDIR /usr/src/app

0 commit comments

Comments
 (0)