vintasoftware / django-react-boilerplate

Django 5, React, Bootstrap 5 with Python 3 and Webpack project boilerplate
MIT License
1.97k stars 479 forks source link

Remove unnecessary layer for the frontend Dockerfile #583

Closed raisiqueira closed 2 years ago

raisiqueira commented 2 years ago

A small improvement for the frontend Dockerfile (https://github.com/vintasoftware/django-react-boilerplate/blob/master/frontend/Dockerfile#L3), the mkdir /app/ layer isn't necessary because WORKDIR creates the folder if it doesn't exist.

Dockerfile's reference: https://docs.docker.com/engine/reference/builder/#workdir