1
0
mirror of https://github.com/stonith404/pingvin-share.git synced 2024-11-04 23:10:13 +01:00

Fix setup script function path

This commit is contained in:
Elias Schneider 2022-05-06 12:08:10 +02:00
parent ded5ca4b51
commit 116c3403ff
No known key found for this signature in database
GPG Key ID: D5EC1C72D93244FD
2 changed files with 2 additions and 1 deletions

View File

@ -6,7 +6,7 @@ const zipDirectory = (functionName: string) => {
{
gzip: true,
sync: true,
cwd: `./../functions/${functionName}`,
cwd: `./functions/${functionName}`,
file: "code.tar.gz",
},
["./"]

View File

@ -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