Dockerfile update
Build KX3DEX.radio / Build and Deploy (push) Has started running
Details
Build KX3DEX.radio / Build and Deploy (push) Has started running
Details
parent
2d81c10377
commit
dc90d2ac4d
|
@ -1,12 +1,13 @@
|
||||||
# Install dependencies only when needed
|
# 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
|
RUN apk add --no-cache libc6-compat
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY package.json yarn.lock ./
|
COPY package.json yarn.lock ./
|
||||||
RUN yarn install
|
RUN yarn install
|
||||||
|
|
||||||
# Rebuild the source code only when needed
|
# Rebuild the source code only when needed
|
||||||
FROM node:18-alpine AS builder
|
FROM node:18-alpine3.19 AS builder
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
@ -17,7 +18,7 @@ COPY . .
|
||||||
RUN yarn build
|
RUN yarn build
|
||||||
|
|
||||||
# Production image, copy all the files and run next
|
# Production image, copy all the files and run next
|
||||||
FROM node:18-alpine AS runner
|
FROM node:18-alpine3.19 AS runner
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
ENV NODE_ENV production
|
ENV NODE_ENV production
|
||||||
|
|
Loading…
Reference in New Issue