make docker images smaller
All checks were successful
/ build (push) Successful in 34s

This commit is contained in:
fred 2025-11-03 13:42:43 -08:00
parent 4b56fc78ec
commit e7b2a47cab
2 changed files with 4 additions and 2 deletions

View file

@ -1,9 +1,11 @@
FROM node:22
FROM node:22-slim
WORKDIR /usr/src/app
COPY package*.json ./
RUN apt-get update -y && apt-get install -y openssl
RUN if [ "$NODE_ENV" = "dev" ]; then npm install; else npm install --omit=dev; fi
COPY . .

View file

@ -1,4 +1,4 @@
FROM node:22
FROM node:22-alpine
WORKDIR /usr/src/app