diff options
author | Bastien Wirtz <bastien.wirtz@gmail.com> | 2024-04-22 19:55:25 +0200 |
---|---|---|
committer | Bastien Wirtz <bastien.wirtz@gmail.com> | 2024-04-22 19:55:25 +0200 |
commit | 0740fb31b530e125b1a64ba33bf7428f765c541d (patch) | |
tree | 7c37a23975cf0ebec1ceeb4f8dd51584181d689c /Dockerfile | |
parent | 8326eba25f3552496bcca644a4197c9533077afa (diff) | |
download | homer-0740fb31b530e125b1a64ba33bf7428f765c541d.tar.gz homer-0740fb31b530e125b1a64ba33bf7428f765c541d.tar.zst homer-0740fb31b530e125b1a64ba33bf7428f765c541d.zip |
Switch package manager to pnpm
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 15 |
1 files changed, 10 insertions, 5 deletions
@@ -1,16 +1,21 @@ | |||
1 | # build stage | 1 | # build stage |
2 | FROM node:lts-alpine3.18 as build-stage | 2 | FROM node:lts-alpine3.19 as build-stage |
3 | |||
4 | ENV PNPM_HOME="/pnpm" | ||
5 | ENV PATH="$PNPM_HOME:$PATH" | ||
6 | RUN corepack enable | ||
7 | RUN corepack use pnpm@8 | ||
3 | 8 | ||
4 | WORKDIR /app | 9 | WORKDIR /app |
5 | 10 | ||
6 | COPY package.json ./ | 11 | COPY package.json pnpm-lock.yaml ./ |
7 | RUN yarn install --no-cache --frozen-lockfile --non-interactive | 12 | RUN pnpm install --frozen-lockfile |
8 | 13 | ||
9 | COPY . . | 14 | COPY . . |
10 | RUN yarn build | 15 | RUN pnpm build |
11 | 16 | ||
12 | # production stage | 17 | # production stage |
13 | FROM alpine:3.18 | 18 | FROM alpine:3.19 |
14 | 19 | ||
15 | ENV GID 1000 | 20 | ENV GID 1000 |
16 | ENV UID 1000 | 21 | ENV UID 1000 |