9 lines
231 B
Docker
9 lines
231 B
Docker
ARG TARGETPLATFORM=linux/amd64
|
|
FROM --platform=$TARGETPLATFORM node:21.5.0 AS builder
|
|
WORKDIR /app
|
|
RUN apt update -qq && apt install -y build-essential && apt clean
|
|
COPY . .
|
|
RUN npm install
|
|
RUN npm run build
|
|
CMD [ "npm", "start" ]
|