From 116c3403ffb12f29cecc40f756057b6ef2b3a28c Mon Sep 17 00:00:00 2001 From: Elias Schneider Date: Fri, 6 May 2022 12:08:10 +0200 Subject: [PATCH] Fix setup script function path --- .setup/utils/compress.util.ts | 2 +- Dockerfile | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.setup/utils/compress.util.ts b/.setup/utils/compress.util.ts index 0b33f004..5d2859bc 100644 --- a/.setup/utils/compress.util.ts +++ b/.setup/utils/compress.util.ts @@ -6,7 +6,7 @@ const zipDirectory = (functionName: string) => { { gzip: true, sync: true, - cwd: `./../functions/${functionName}`, + cwd: `./functions/${functionName}`, file: "code.tar.gz", }, ["./"] diff --git a/Dockerfile b/Dockerfile index 24a68b7b..3c74bbc4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -23,6 +23,7 @@ RUN ncc build index.ts FROM node:16-alpine AS runner WORKDIR /opt/app ENV NODE_ENV=production +COPY ./functions ./functions COPY --from=builder /opt/app/next.config.js ./ COPY --from=builder /opt/app/public ./public COPY --from=builder /opt/app/.next ./.next