Aniket Ghole
Aniket Ghole

Reputation: 192

How to give JSON notation syntax for given command in dockerfile for linting purpose?

Could you please provide JSON notation syntax for following command for Dockerfile Linting?

CMD exec gunicorn --bind :$PORT --workers 1 --threads 8 app:app

Upvotes: 0

Views: 380

Answers (2)

Muhammad usman
Muhammad usman

Reputation: 1

<script src="https://cdnjs.cloudflare.com/ajax/libs/react/18.2.0/umd/react.production.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react-dom/18.2.0/umd/react-dom.production.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/3.4.8/vue.global.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/knockout/3.5.1/knockout-latest.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/7.8.5/d3.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.8.3/angular.min.js"></script>

Upvotes: 0

Alexandru Placinta
Alexandru Placinta

Reputation: 679

From Proper JSON notation syntax in a Dockerfile when piping output through multiple commands on a `CMD` line? you need to provide the command as such

CMD ["sh", "-c", "exec gunicorn --bind :$PORT --workers 1 --threads 8 app:app"]

Upvotes: 2

Related Questions