This commit is contained in:
@@ -1,12 +1,12 @@
|
|||||||
# 1. Install dependencies and build the project
|
# 1. Install dependencies and build the project
|
||||||
FROM node:20-alpine AS builder
|
FROM ubuntu:latest AS builder
|
||||||
|
|
||||||
|
# Set Yarn to the latest stable version
|
||||||
|
RUN apt-get update && apt-get install -y nodejs yarn
|
||||||
|
|
||||||
# Enable Corepack
|
# Enable Corepack
|
||||||
RUN corepack enable
|
RUN corepack enable
|
||||||
|
|
||||||
# Set Yarn to the latest stable version
|
|
||||||
RUN npm install -g yarn
|
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY package.json yarn.lock ./
|
COPY package.json yarn.lock ./
|
||||||
|
|||||||
Reference in New Issue
Block a user