1
0
Fork 0
mirror of https://github.com/bastienwirtz/homer.git synced 2026-01-23 02:15:09 +00:00

Switch package manager to pnpm

This commit is contained in:
Bastien Wirtz 2024-04-22 19:55:25 +02:00
parent 8326eba25f
commit 0740fb31b5
8 changed files with 4455 additions and 4015 deletions

View file

@ -1,16 +1,21 @@
# build stage
FROM node:lts-alpine3.18 as build-stage
FROM node:lts-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 --no-cache --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.18
FROM alpine:3.19
ENV GID 1000
ENV UID 1000