Skip to content

Commit

Permalink
Simplify Dockerfile further
Browse files Browse the repository at this point in the history
  • Loading branch information
karlhorky committed Apr 22, 2023
1 parent d580873 commit 7620afb
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,10 @@ COPY ./docker/clone-and-preflight.js ./docker/package.json ./docker/pnpm-lock.ya
RUN corepack enable && corepack prepare pnpm@latest --activate
RUN pnpm install --frozen-lockfile

# Enable `pnpm add --global` on Alpine Linux
# - Set the home location environment variable to a location already in $PATH
# - Trick pnpm into thinking that bash is available (only /bin/sh available on Alpine Linux)
# Enable `pnpm add --global` on Alpine Linux by setting
# home location environment variable to a location already in $PATH
# https://github.com/pnpm/pnpm/issues/784#issuecomment-1518582235
ENV PNPM_HOME=/usr/local/bin
RUN SHELL=bash pnpm setup

RUN pnpm add --global @upleveled/preflight

Expand Down

0 comments on commit 7620afb

Please sign in to comment.