]> git.immae.eu Git - github/bastienwirtz/homer.git/blobdiff - Dockerfile
Release 24.04.1
[github/bastienwirtz/homer.git] / Dockerfile
index 6a6d741e255a51e91f88f4537b6e89cee4bcab75..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
+COPY package.json pnpm-lock.yaml ./
+RUN pnpm install --frozen-lockfile
 
 COPY . .
-RUN yarn build
+RUN pnpm build
 
 # production stage
 FROM alpine:3.19