Skip to content

Commit

Permalink
Merge pull request #91 from mbpictures/hotfix/copy-build-files
Browse files Browse the repository at this point in the history
hotfix/copy-build-files
  • Loading branch information
mbpictures authored Dec 22, 2023
2 parents e363d9b + 2b64b55 commit 5478924
Show file tree
Hide file tree
Showing 3 changed files with 248 additions and 3 deletions.
2 changes: 0 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,8 @@ ENV NODE_ENV production
RUN addgroup --system --gid 1001 nodejs
RUN adduser --system --uid 1001 nextjs

COPY --from=builder /ticketshop/public ./public
COPY --from=builder /ticketshop/package.json ./package.json
COPY --from=builder --chown=nextjs:nodejs /ticketshop/.next/standalone ./
COPY --from=builder --chown=nextjs:nodejs /ticketshop/.next/static ./.next/static
RUN sed -i "s|sqlite|postgresql|g" /ticketshop/node_modules/.prisma/client/schema.prisma
RUN sed -i "s|\"file:./dev.db\"|env(\"DATABASE_URL\")|g" /ticketshop/node_modules/.prisma/client/schema.prisma

Expand Down
245 changes: 245 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@
"homepage": "https://github.com/mbpictures/ticketshop#readme",
"license": "MIT",
"scripts": {
"copy-standalone": "npx copyfiles -a -E \"public/**/*\" .next/standalone && npx copyfiles -a -E \".next/static/**/*\" .next/standalone/",
"dev": "next dev",
"dev:test": "cross-env EMAIL_PROVIDER= EMAIL_HOST=localhost EMAIL_PORT=7777 next dev",
"build": "next build",
"build": "next build && npm run copy-standalone",
"start": "next start -p $PORT",
"start:default": "next start -p 3000",
"start:test": "cross-env EMAIL_PROVIDER= EMAIL_HOST=localhost EMAIL_PORT=7777 nyc next start -p 3000",
Expand Down Expand Up @@ -129,6 +130,7 @@
"babel-loader": "^8.2.5",
"babel-plugin-istanbul": "^6.1.1",
"chai-colors": "^1.0.1",
"copyfiles": "^2.4.1",
"cross-env": "^7.0.3",
"cypress": "^10.7.0",
"cypress-real-events": "^1.7.1",
Expand Down

0 comments on commit 5478924

Please sign in to comment.