<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Deploy Dockerized React App]]></title><description><![CDATA[<p dir="auto">Hi All,</p>
<p dir="auto">I'm fairly new to Cloudron and Docker and I'm trying to deploy a simple React app which I created using npx create-react-app.</p>
<ul>
<li><a href="https://gist.github.com/rossmaclean/23b4b7fa85e6a6cd79a0de3d30298481" target="_blank" rel="noopener noreferrer nofollow ugc">Dockerfile</a> Which I found from one of the many examples online (each of which is slightly different)</li>
<li><a href="https://gist.github.com/rossmaclean/6f6f869dd648348c27ac71cc6a92c07d" target="_blank" rel="noopener noreferrer nofollow ugc">CloudronManifest</a></li>
</ul>
<p dir="auto">I can create the container locally with port 80:80 and access it from my browser, however when I deploy to Cloudron I get the following errors:</p>
<pre><code>Oct 14 22:40:21 /docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
Oct 14 22:40:21 /docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
Oct 14 22:40:21 /docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
Oct 14 22:40:21 10-listen-on-ipv6-by-default.sh: error: can not modify /etc/nginx/conf.d/default.conf (read-only file system?)
Oct 14 22:40:21 /docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
Oct 14 22:40:21 /docker-entrypoint.sh: Configuration complete; ready for start up
Oct 14 22:40:21 2020/10/14 21:40:21 [emerg] 1#1: mkdir() "/var/cache/nginx/client_temp" failed (30: Read-only file system)
Oct 14 22:40:21 nginx: [emerg] mkdir() "/var/cache/nginx/client_temp" failed (30: Read-only file system)
</code></pre>
<p dir="auto">I can see it's something to do with the file Nginx is trying to edit but I am unsure how to fix it.<br />
There are some web examples on the Cloudron Gitlab however they seem to be running the app in development mode instead of actually building it.</p>
<p dir="auto">Apologies in advance if I'm just being a Docker noob and this is nothing to do with Cloudron <img src="https://forum.cloudron.io/assets/plugins/nodebb-plugin-emoji/emoji/android/1f61b.png?v=d69db52af35" class="not-responsive emoji emoji-android emoji--stuck_out_tongue" style="height:23px;width:auto;vertical-align:middle" title=":P" alt="😛" /></p>
<p dir="auto">Thanks,</p>
<p dir="auto">Ross</p>
]]></description><link>https://forum.cloudron.io/topic/3421/deploy-dockerized-react-app</link><generator>RSS for Node</generator><lastBuildDate>Thu, 16 Apr 2026 02:45:32 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/3421.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 14 Oct 2020 21:48:52 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Deploy Dockerized React App on Sat, 07 Nov 2020 12:32:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/girish" aria-label="Profile: girish">@<bdi>girish</bdi></a> Sorry for the late reply, I tried this and got it working!<br />
Thanks,<br />
Ross</p>
]]></description><link>https://forum.cloudron.io/post/18427</link><guid isPermaLink="true">https://forum.cloudron.io/post/18427</guid><dc:creator><![CDATA[rossmaclean]]></dc:creator><pubDate>Sat, 07 Nov 2020 12:32:27 GMT</pubDate></item><item><title><![CDATA[Reply to Deploy Dockerized React App on Wed, 14 Oct 2020 22:47:50 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/rossmaclean" aria-label="Profile: rossmaclean">@<bdi>rossmaclean</bdi></a> On Cloudron, the containers run on a read only file system. They can write only to specific locations at runtime - see <a href="https://docs.cloudron.io/custom-apps/guide/#read-only" target="_blank" rel="noopener noreferrer nofollow ugc">https://docs.cloudron.io/custom-apps/guide/#read-only</a> .</p>
<p dir="auto">For configuring nginx, I think <a href="https://docs.cloudron.io/custom-apps/guide/#nginx" target="_blank" rel="noopener noreferrer nofollow ugc">https://docs.cloudron.io/custom-apps/guide/#nginx</a> is the info you are looking for. You can see how it's done in the <a href="https://git.cloudron.io/cloudron/teamspeak-app" target="_blank" rel="noopener noreferrer nofollow ugc">teamspeak</a> package.</p>
<ul>
<li>Make a nginx.conf in your repo - <a href="https://git.cloudron.io/cloudron/teamspeak-app/-/blob/master/nginx.conf" target="_blank" rel="noopener noreferrer nofollow ugc">https://git.cloudron.io/cloudron/teamspeak-app/-/blob/master/nginx.conf</a> (in your case, you have to fix the port to 80 from 8000).</li>
<li>Add the config to a site - <a href="https://git.cloudron.io/cloudron/teamspeak-app/-/blob/master/Dockerfile#L34" target="_blank" rel="noopener noreferrer nofollow ugc">https://git.cloudron.io/cloudron/teamspeak-app/-/blob/master/Dockerfile#L34</a></li>
</ul>
]]></description><link>https://forum.cloudron.io/post/15962</link><guid isPermaLink="true">https://forum.cloudron.io/post/15962</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Wed, 14 Oct 2020 22:47:50 GMT</pubDate></item></channel></rss>