This commit is contained in:
parent
4b56fc78ec
commit
e7b2a47cab
2 changed files with 4 additions and 2 deletions
|
|
@ -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 . .
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
FROM node:22
|
||||
FROM node:22-alpine
|
||||
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue