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