diff --git a/Dockerfile b/Dockerfile index 778dac47c..7f974fcf6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -600,8 +600,7 @@ COPY --from=vpnmanager-builder --chown=nextjs:nodejs /workspace/apps/vpnmanager/ # https://nextjs.org/docs/advanced-features/output-file-tracing COPY --from=vpnmanager-builder --chown=nextjs:nodejs /workspace/apps/vpnmanager/.next/standalone ./apps/vpnmanager COPY --from=vpnmanager-builder --chown=nextjs:nodejs /workspace/apps/vpnmanager/.next/static ./apps/vpnmanager/.next/static -COPY --from=vpnmanager-builder --chown=nextjs:nodejs /workspace/apps/vpnmanager/scripts ./apps/vpnmanager/scripts -COPY --from=vpnmanager-builder --chown=nextjs:nodejs /workspace/apps/vpnmanager/app.json ./app.json +COPY --from=vpnmanager-builder --chown=nextjs:nodejs /workspace/apps/vpnmanager/contrib/dokku ./contrib/dokku USER nextjs # server.js is created by next build from the standalone output diff --git a/apps/vpnmanager/app.json b/apps/vpnmanager/contrib/dokku/app.json similarity index 55% rename from apps/vpnmanager/app.json rename to apps/vpnmanager/contrib/dokku/app.json index 6952f85b1..e509d641e 100644 --- a/apps/vpnmanager/app.json +++ b/apps/vpnmanager/contrib/dokku/app.json @@ -2,7 +2,7 @@ "name": "vpnmanager", "cron": [ { - "command": "node apps/vpnmanager/scripts/processGsheet.mjs", + "command": "node contrib/dokku/scripts/processGsheet.mjs", "schedule": "@hourly" } ] diff --git a/apps/vpnmanager/scripts/processGsheet.mjs b/apps/vpnmanager/contrib/dokku/scripts/processGsheet.mjs similarity index 100% rename from apps/vpnmanager/scripts/processGsheet.mjs rename to apps/vpnmanager/contrib/dokku/scripts/processGsheet.mjs