Skip to content

Commit

Permalink
Update Dockerfile and package.json for improved container startup and…
Browse files Browse the repository at this point in the history
… testing
  • Loading branch information
renatodellosso committed Dec 14, 2024
1 parent b722ea2 commit a74d7ab
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ RUN npm run build

EXPOSE 443

CMD npm run start
# ENTRYPOINT [ "bash" ] # Uncomment to operate the terminal in the container
CMD ["/usr/local/bin/npm", "run", "start"]
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@
"build": "next build",
"start": "cross-env NODE_ENV=production npx tsx index.ts",
"restart": "next build && cross-env NODE_ENV=production npx tsx index.ts",
"test": "jest",
"docker-build": "docker build -t gearbox .",
"docker-start": "docker run -i -t -p 443:443 gearbox",
"docker-prune": "docker container prune",
"docker-tag": "docker tag gearbox us-east1-docker.pkg.dev/gearbox-442221/gearbox-test/gearbox",
"docker-push": "docker push us-east1-docker.pkg.dev/gearbox-442221/gearbox-test/gearbox/latest",
"lint": "eslint . --max-warnings=0 --ignore-pattern \"coverage/**/*\"",
"prettier-fix": "prettier --write ./**/*.{js,tsx,jsx,json,ts}",
"prettier-check": "prettier --check ./**/*.{js,tsx,jsx,json,ts}",
"test": "jest"
"prettier-check": "prettier --check ./**/*.{js,tsx,jsx,json,ts}"
},
"dependencies": {
"@next-auth/mongodb-adapter": "^1.1.3",
Expand Down

0 comments on commit a74d7ab

Please sign in to comment.