Dockerfile update
Build KX3DEX.radio / Build and Deploy (push) Has started running Details

master
Dex 2024-03-29 15:42:41 -04:00
parent 2d81c10377
commit dc90d2ac4d
1 changed files with 4 additions and 3 deletions

View File

@ -1,12 +1,13 @@
# Install dependencies only when needed
FROM node:18-alpine AS deps
FROM node:18-alpine3.19 AS deps
RUN yarn config set network-timeout 300000
RUN apk add --no-cache libc6-compat
WORKDIR /app
COPY package.json yarn.lock ./
RUN yarn install
# Rebuild the source code only when needed
FROM node:18-alpine AS builder
FROM node:18-alpine3.19 AS builder
WORKDIR /app
@ -17,7 +18,7 @@ COPY . .
RUN yarn build
# Production image, copy all the files and run next
FROM node:18-alpine AS runner
FROM node:18-alpine3.19 AS runner
WORKDIR /app
ENV NODE_ENV production