Shreyas Chorge
Shreyas Chorge

Reputation: 319

How to Dockerize react app with huge data

I have a React App which needs to be Dockerized. In public folder I have 4GB of .png images. Just wondering if it is a good idea to dockerize the entire app or is there any other way to do it ?

Upvotes: 0

Views: 126

Answers (1)

Pontus Nyberg
Pontus Nyberg

Reputation: 78

You could dockerize the app and put the folder with the images outside and just volume it in. Saving both time on build and space in the container.

docker run --name containername -v ~/Folder-outside:/images -d imagename:latest

Upvotes: 1

Related Questions