]> git.immae.eu Git - github/bastienwirtz/homer.git/blobdiff - Dockerfile
Release 24.04.1
[github/bastienwirtz/homer.git] / Dockerfile
index 58d08dcf5207d0a19a16ec8c41d574420667f127..422b70b75fe198f1422436221d870fb1bcf7de9d 100644 (file)
@@ -1,13 +1,18 @@
 # build stage
-FROM node:lts-alpine3.19 as build-stage
+FROM node:18-alpine3.19 as build-stage
+
+ENV PNPM_HOME="/pnpm"
+ENV PATH="$PNPM_HOME:$PATH"
+RUN corepack enable
+RUN corepack use pnpm@8
 
 WORKDIR /app
 
-COPY package.json ./
-RUN yarn install --frozen-lockfile --non-interactive
+COPY package.json pnpm-lock.yaml ./
+RUN pnpm install --frozen-lockfile
 
 COPY . .
-RUN yarn build
+RUN pnpm build
 
 # production stage
 FROM alpine:3.19