From 64a766a5fb2c39cb61768c0d5b91660e55788100 Mon Sep 17 00:00:00 2001 From: Ivan Vasilov Date: Thu, 23 Nov 2023 18:45:22 +0100 Subject: [PATCH] fix: Update the studio dockerfile with the new folder structure (#19179) * Fix issues caused by moving the studio app. * Add *.env.* to the dockerignore. --- .dockerignore | 5 ++--- apps/studio/Dockerfile | 8 ++++---- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/.dockerignore b/.dockerignore index ff561a782b..247ce6b272 100644 --- a/.dockerignore +++ b/.dockerignore @@ -3,7 +3,6 @@ .git .github about -apps docker examples i18n @@ -14,7 +13,7 @@ tests **/.next .vercel -.env.* +**/.env.* .dockerignore -studio/Dockerfile +apps/studio/Dockerfile diff --git a/apps/studio/Dockerfile b/apps/studio/Dockerfile index 0f1ca272a6..ad0012db82 100644 --- a/apps/studio/Dockerfile +++ b/apps/studio/Dockerfile @@ -52,10 +52,10 @@ RUN npx turbo run build --scope=studio --include-dependencies --no-deps # Copy only compiled code and dependencies FROM base as production -COPY --from=builder /app/studio/public ./studio/public -COPY --from=builder /app/studio/.next/standalone ./ -COPY --from=builder /app/studio/.next/static ./studio/.next/static +COPY --from=builder /app/apps/studio/public ./apps/studio/public +COPY --from=builder /app/apps/studio/.next/standalone ./ +COPY --from=builder /app/apps/studio/.next/static ./apps/studio/.next/static EXPOSE 3000 ENTRYPOINT ["docker-entrypoint.sh"] HEALTHCHECK --interval=5s --timeout=5s --retries=3 CMD node -e "require('http').get('http://localhost:3000/api/profile', (r) => {if (r.statusCode !== 200) throw new Error(r.statusCode)})" -CMD ["node", "studio/server.js"] +CMD ["node", "apps/studio/server.js"]