diff --git a/Dockerfile b/Dockerfile index 4b4ec14..8b60d99 100644 --- a/Dockerfile +++ b/Dockerfile @@ -39,9 +39,9 @@ RUN chown nextjs:nodejs .next # https://nextjs.org/docs/advanced-features/output-file-tracing COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./ COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static -COPY --from=builder /app/db.sql ./db.sql +COPY --from=builder --chown=nextjs:nodejs /app/db.sql ./db.sql -USER nextjsw +USER nextjs EXPOSE 3000 diff --git a/fly.toml b/fly.toml index 97975e7..50881d8 100644 --- a/fly.toml +++ b/fly.toml @@ -6,10 +6,6 @@ app = 'joemonk' primary_region = 'lhr' - -[build] - image = "registry.fly.io/lmcoaching:latest" - [http_service] internal_port = 3000 force_https = true