From 6eaf1d6b9fc6529b2553e4a42f91575d5c22fe73 Mon Sep 17 00:00:00 2001 From: Joe Monk Date: Wed, 18 Dec 2024 00:22:12 +0000 Subject: [PATCH] user an dchown --- Dockerfile | 4 ++-- fly.toml | 4 ---- 2 files changed, 2 insertions(+), 6 deletions(-) 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