Update dockerfile
This commit is contained in:
parent
1db3d7a6fb
commit
20ac8f69ea
@ -1,8 +1,10 @@
|
||||
ARG PNPM_VERSION=7.11.0
|
||||
ARG NPM_VERSION=8.19.1
|
||||
ARG TARGETPLATFORM
|
||||
|
||||
FROM node:18-slim as build
|
||||
WORKDIR /app
|
||||
|
||||
ARG PNPM_VERSION=7.11.0
|
||||
|
||||
RUN apt update && apt -y install curl
|
||||
RUN npm --no-update-notifier --no-fund --global install pnpm@${PNPM_VERSION}
|
||||
|
||||
@ -14,9 +16,6 @@ RUN pnpm build
|
||||
FROM node:18-slim
|
||||
WORKDIR /app
|
||||
ENV NODE_ENV production
|
||||
ARG NPM_VERSION=8.19.1
|
||||
ARG PNPM_VERSION=7.11.0
|
||||
ARG TARGETPLATFORM
|
||||
|
||||
RUN apt update && apt -y install --no-install-recommends ca-certificates git git-lfs openssh-client curl jq cmake sqlite3 openssl psmisc python3
|
||||
RUN apt-get clean autoclean && apt-get autoremove --yes && rm -rf /var/lib/{apt,dpkg,cache,log}/
|
||||
|
Loading…
x
Reference in New Issue
Block a user