From 0706d97d60f13cdc7870327c82e654b8568f72d8 Mon Sep 17 00:00:00 2001 From: Manuel Ruck Date: Sat, 4 Nov 2023 14:37:45 +0100 Subject: [PATCH] =?UTF-8?q?chore(cleanup):=20=F0=9F=A7=B9=20remove=20unuse?= =?UTF-8?q?d=20dockerfiles?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Manuel Ruck --- .../cron-jobs/import-named-polls/Dockerfile | 32 ------------------- .../import-named-polls/Dockerfile.dev | 15 --------- 2 files changed, 47 deletions(-) delete mode 100644 services/cron-jobs/import-named-polls/Dockerfile delete mode 100644 services/cron-jobs/import-named-polls/Dockerfile.dev diff --git a/services/cron-jobs/import-named-polls/Dockerfile b/services/cron-jobs/import-named-polls/Dockerfile deleted file mode 100644 index 083259e04..000000000 --- a/services/cron-jobs/import-named-polls/Dockerfile +++ /dev/null @@ -1,32 +0,0 @@ -FROM node:20-alpine AS BUILD_IMAGE - -# install next-optimized-images requirements -RUN apk --no-cache update \ - && apk --no-cache add curl bash git \ - && rm -fr /var/cache/apk/* - -# install node-prune (https://github.com/tj/node-prune) -RUN curl -sfL https://install.goreleaser.com/github.com/tj/node-prune.sh | bash -s -- -b /usr/local/bin - -WORKDIR /app -COPY package.json pnpm-lock.yaml ./ -RUN pnpm --frozen-lockfile -COPY . . - -RUN pnpm build - -RUN npm prune --production - -FROM node:20-alpine - -WORKDIR /app - -COPY . . - -# copy from build image -COPY --from=BUILD_IMAGE /app/build ./build -COPY --from=BUILD_IMAGE /app/node_modules ./node_modules - -ENV NODE_ENV=production - -ENTRYPOINT [ "pnpm", "start" ] \ No newline at end of file diff --git a/services/cron-jobs/import-named-polls/Dockerfile.dev b/services/cron-jobs/import-named-polls/Dockerfile.dev deleted file mode 100644 index 36cdcc544..000000000 --- a/services/cron-jobs/import-named-polls/Dockerfile.dev +++ /dev/null @@ -1,15 +0,0 @@ -FROM node:12-alpine - -RUN apk --no-cache update \ - && apk --no-cache add git \ - && rm -fr /var/cache/apk/* - -WORKDIR /app -COPY package.json pnpm-lock.yaml ./ -RUN pnpm --frozen-lockfile - -COPY . . - -ENV NODE_ENV=development - -ENTRYPOINT [ "pnpm", "dev" ] \ No newline at end of file