Dockerfile

This commit is contained in:
Andras Bacsai 2022-09-06 14:20:14 +02:00
parent 95a5089bdc
commit c4615ae557

View File

@ -1,6 +1,5 @@
ARG PNPM_VERSION=7.11.0 ARG PNPM_VERSION=7.11.0
ARG NPM_VERSION=8.19.1 ARG NPM_VERSION=8.19.1
ARG TARGETPLATFORM
FROM node:18-slim as build FROM node:18-slim as build
WORKDIR /app WORKDIR /app
@ -16,6 +15,7 @@ RUN pnpm build
FROM node:18-slim FROM node:18-slim
WORKDIR /app WORKDIR /app
ENV NODE_ENV production ENV NODE_ENV production
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 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}/ RUN apt-get clean autoclean && apt-get autoremove --yes && rm -rf /var/lib/{apt,dpkg,cache,log}/