Fix Docker Node version for Cloud Run build
This commit is contained in:
parent
80325d28d1
commit
3c74c2e686
@ -1,4 +1,4 @@
|
|||||||
FROM node:20.15.1-alpine AS builder
|
FROM node:20.19.0-alpine AS builder
|
||||||
RUN apk add --no-cache git
|
RUN apk add --no-cache git
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY frontend/package.json frontend/yarn.lock ./
|
COPY frontend/package.json frontend/yarn.lock ./
|
||||||
@ -6,7 +6,7 @@ RUN yarn install --pure-lockfile
|
|||||||
COPY frontend .
|
COPY frontend .
|
||||||
RUN yarn build
|
RUN yarn build
|
||||||
|
|
||||||
FROM node:20.15.1-alpine
|
FROM node:20.19.0-alpine
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY backend/package.json backend/yarn.lock ./
|
COPY backend/package.json backend/yarn.lock ./
|
||||||
RUN yarn install --pure-lockfile
|
RUN yarn install --pure-lockfile
|
||||||
@ -14,4 +14,3 @@ COPY backend .
|
|||||||
|
|
||||||
COPY --from=builder /app/build /app/public
|
COPY --from=builder /app/build /app/public
|
||||||
CMD ["yarn", "start"]
|
CMD ["yarn", "start"]
|
||||||
|
|
||||||
|
|||||||
@ -1,24 +1,24 @@
|
|||||||
# Base image for Node.js dependencies
|
# Base image for Node.js dependencies
|
||||||
FROM node:20.15.1-alpine AS frontend-deps
|
FROM node:20.19.0-alpine AS frontend-deps
|
||||||
RUN apk add --no-cache git
|
RUN apk add --no-cache git
|
||||||
WORKDIR /app/frontend
|
WORKDIR /app/frontend
|
||||||
COPY frontend/package.json frontend/yarn.lock ./
|
COPY frontend/package.json frontend/yarn.lock ./
|
||||||
RUN yarn install --pure-lockfile
|
RUN yarn install --pure-lockfile
|
||||||
|
|
||||||
FROM node:20.15.1-alpine AS backend-deps
|
FROM node:20.19.0-alpine AS backend-deps
|
||||||
RUN apk add --no-cache git
|
RUN apk add --no-cache git
|
||||||
WORKDIR /app/backend
|
WORKDIR /app/backend
|
||||||
COPY backend/package.json backend/yarn.lock ./
|
COPY backend/package.json backend/yarn.lock ./
|
||||||
RUN yarn install --pure-lockfile
|
RUN yarn install --pure-lockfile
|
||||||
|
|
||||||
FROM node:20.15.1-alpine AS app-shell-deps
|
FROM node:20.19.0-alpine AS app-shell-deps
|
||||||
RUN apk add --no-cache git
|
RUN apk add --no-cache git
|
||||||
WORKDIR /app/app-shell
|
WORKDIR /app/app-shell
|
||||||
COPY app-shell/package.json app-shell/yarn.lock ./
|
COPY app-shell/package.json app-shell/yarn.lock ./
|
||||||
RUN yarn install --pure-lockfile
|
RUN yarn install --pure-lockfile
|
||||||
|
|
||||||
# Nginx setup and application build
|
# Nginx setup and application build
|
||||||
FROM node:20.15.1-alpine AS build
|
FROM node:20.19.0-alpine AS build
|
||||||
RUN apk add --no-cache git nginx curl
|
RUN apk add --no-cache git nginx curl
|
||||||
RUN apk add --no-cache lsof procps
|
RUN apk add --no-cache lsof procps
|
||||||
RUN yarn global add concurrently
|
RUN yarn global add concurrently
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
FROM node:20.15.1-alpine
|
FROM node:20.19.0-alpine
|
||||||
|
|
||||||
RUN apk update && apk add bash
|
RUN apk update && apk add bash
|
||||||
# Create app directory
|
# Create app directory
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
FROM node:20.15.1-alpine
|
FROM node:20.19.0-alpine
|
||||||
|
|
||||||
RUN apk update && apk add bash
|
RUN apk update && apk add bash
|
||||||
# Create app directory
|
# Create app directory
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
FROM node:20.15.1-alpine
|
FROM node:20.19.0-alpine
|
||||||
|
|
||||||
# Create app directory
|
# Create app directory
|
||||||
WORKDIR /usr/src/app
|
WORKDIR /usr/src/app
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user