change deploy command to use node directly instead

main
Ayush Mukherjee 2 years ago
parent 50fe913144
commit 289b1855d4

@ -31,6 +31,6 @@ ENV DB_NAME mx
ENV JWT_SECRET secret
ENV JWT_EXPIRY 1h
CMD ["sh", "-c", "DB_HOST=${DB_HOST} DB_PORT=${DB_PORT} DB_USER=${DB_USER} DB_PASS=${DB_PASS} DB_NAME=${DB_NAME} JWT_SECRET=${JWT_SECRET} JWT_EXPIRY=${JWT_EXPIRY} pnpm run start:prod --host 0.0.0.0"]
CMD ["sh", "-c", "DB_HOST=${DB_HOST} DB_PORT=${DB_PORT} DB_USER=${DB_USER} DB_PASS=${DB_PASS} DB_NAME=${DB_NAME} JWT_SECRET=${JWT_SECRET} JWT_EXPIRY=${JWT_EXPIRY} node dist/main --host 0.0.0.0"]
EXPOSE 3000

@ -14,3 +14,5 @@ services:
container_name: app
depends_on:
- db
ports:
- 3000:3000

Loading…
Cancel
Save