From 42ce4cbd0932b9c33ea597436acf89164c5c810f Mon Sep 17 00:00:00 2001 From: ShahanaFarooqui Date: Thu, 27 Jun 2024 14:20:46 -0700 Subject: [PATCH] Testing arm64 tini error --- Dockerfile | 34 ++-------------------------------- 1 file changed, 2 insertions(+), 32 deletions(-) diff --git a/Dockerfile b/Dockerfile index e1e1c98b..19856e72 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,39 +1,9 @@ ARG BASE_DISTRO="node:alpine" -FROM --platform=${BUILDPLATFORM} ${BASE_DISTRO} as builder - -WORKDIR /RTL - -COPY package.json /RTL/package.json -COPY package-lock.json /RTL/package-lock.json - -RUN npm install --legacy-peer-deps - -COPY . . - -# Build the Angular application -RUN npm run buildfrontend - -# Build the Backend from typescript server -RUN npm run buildbackend - -# Remove non production necessary modules -RUN npm prune --omit=dev --legacy-peer-deps - -FROM --platform=$BUILDPLATFORM ${BASE_DISTRO} as runner +FROM --platform=${TARGETPLATFORM} ${BASE_DISTRO} RUN apk add --no-cache tini -WORKDIR /RTL - -COPY --from=builder /RTL/rtl.js ./rtl.js -COPY --from=builder /RTL/package.json ./package.json -COPY --from=builder /RTL/frontend ./frontend -COPY --from=builder /RTL/backend ./backend -COPY --from=builder /RTL/node_modules/ ./node_modules - -EXPOSE 3000 - ENTRYPOINT ["/sbin/tini", "-g", "--"] -CMD ["node", "rtl"] +CMD ["sh"] \ No newline at end of file