Skip to content

Commit

Permalink
update script
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikmonsen committed Nov 11, 2024
1 parent 06eeba7 commit 680580b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci_pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ jobs:
echo "NEXT_PUBLIC_KEYCLOAK_REALM=${{ steps.import-secrets.outputs.KEYCLOAK_REALM }}" >> .env.production
echo "AUTH_API_PATH=${{ steps.import-secrets.outputs.AUTH_API_PATH }}" >> .env.production
echo "CATALOG_API_PATH=${{ steps.import-secrets.outputs.CATALOG_API_PATH }}" >> .env.production
echo "DATABASE_URL=file:/app/db/ammo.db" >> .env.production
- name: Extract metadata (tags, labels) for Docker
id: meta
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ RUN mkdir .next && mkdir db
RUN chown nextjs:nodejs .next
RUN chown nextjs:nodejs db


COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./
COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static
COPY --from=builder --chown=nextjs:nodejs /app/prisma ./prisma
COPY --from=builder --chown=nextjs:nodejs /app/db ./db
COPY --from=builder --chown=nextjs:nodejs /app/node_modules ./node_modules

USER nextjs

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"dev": "next dev",
"build": "next build",
"start": "next start",
"start:production": "test -f /app/db/ammo.db || npx prisma db push && npx prisma migrate deploy && HOSTNAME=\"0.0.0.0\" node server.js",
"start:production": "test -f /app/db/ammo.db || npx prisma db push && HOSTNAME=\"0.0.0.0\" node server.js",
"lint": "next lint"
},
"dependencies": {
Expand Down

0 comments on commit 680580b

Please sign in to comment.