-FROM node:14 as builder\r
-RUN apt-get update && apt-get install -y curl yarn bash\r
-\r
-RUN curl -sfL https://install.goreleaser.com/github.com/tj/node-prune.sh | bash -s -- -b /usr/local/bin\r
+FROM node:14-alpine as builder\r
+RUN apk update && apk add yarn --no-cache\r
\r
WORKDIR /usr/src/app\r
\r
RUN yarn\r
RUN yarn build:prod\r
\r
-# Pruning\r
-# RUN npm prune --production\r
-RUN node-prune\r
-\r
FROM node:14-alpine as runner\r
COPY --from=builder /usr/src/app/dist /app/dist\r
COPY --from=builder /usr/src/app/node_modules /app/node_modules\r