---
title: "Discussion on \"Dockerize React app for dev and prod\" | Hashnode"
description: "Discussion on \"Dockerize React app for dev and prod\". Okay, you have a frontend React app and you want to serve it via Docker. Let's do that!\nIn this wiki, we will dockerize both the development and production environment via separate Dockerfiles.\nStep 1: Project setup\nInitialized a pretty standard reac..."
url: "https://hashnode.com/posts/dockerize-react-app-for-dev-and-prod/6434e9475fd8999fdeb78f2e"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Dockerize React app for dev and prod](https://blog.vishnuprasaath.dev/dockerize-react-app-for-dev-and-prod?utm_source=hashnode&utm_medium=feed)

Okay, you have a frontend React app and you want to serve it via Docker. Let's do that! In this wiki, we will dockerize both the development and production environment via separate Dockerfiles. Step 1: Project setup Initialized a pretty standard reac...

Apr 11, 2023 · 3 min read · blog.vishnuprasaath.dev  
Read the article

-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#docker](https://hashnode.com/tag/docker)
-   [#docker-compose](https://hashnode.com/tag/docker-compose)
-   [#containers](https://hashnode.com/tag/containers)

## Written by

[Vishnu Prasaath](https://hashnode.com/@vishnuprasaath)

@vishnuprasaath · Bangalore, India

  
[View profile](https://hashnode.com/@vishnuprasaath)

Curious tech junkie. Breaking keyboards to build software from 'Hello World' 🌍 to 'cloud' 🚀!

A Full Stack Developer and an open source enthusiast. Curious tech junkie. Breaking keyboards to build software from 'Hello World' 🌍 to 'cloud' 🚀! Perpetually caffeinated 🍼. I write code by day, and laugh at it by night.

## Responses 1

Markdown supported · ⌘↵ to post

[Sriram Muthuswamy](https://hashnode.com/@smdoc2022)

[Nov 23, 2023](https://hashnode.com/posts/dockerize-react-app-for-dev-and-prod/6434e9475fd8999fdeb78f2e/comment/655fcccd5df79790e2b07a06)

Nice reading. I am new to react and I am looking to dockerize a react project and deploy it in AWS ECS. I've the necessary AWS resources created for this. But what's holding me is the way I build the react app. Should I use 2 different deployments, one for dev and another for prod? If so do I need to maintain 2 different repos? or can it be done on a single repo (project). What's the main thing(s) should I change when working locally and when I deploy it to AWS? Appreciate your advice. Thanks
