<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Pavel</title>
    <description>The latest articles on DEV Community by Pavel (@fuldevvv).</description>
    <link>https://dev.to/fuldevvv</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3043466%2F5ca18ef7-6a4a-447f-a100-83b8cd14c9a6.jpg</url>
      <title>DEV Community: Pavel</title>
      <link>https://dev.to/fuldevvv</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/fuldevvv"/>
    <language>en</language>
    <item>
      <title>Why are free hosting services great?</title>
      <dc:creator>Pavel</dc:creator>
      <pubDate>Fri, 10 Jul 2026 05:24:32 +0000</pubDate>
      <link>https://dev.to/fuldevvv/why-are-free-hosting-services-great-5e27</link>
      <guid>https://dev.to/fuldevvv/why-are-free-hosting-services-great-5e27</guid>
      <description>&lt;p&gt;If you hear "Hugging Face," you probably think of Machine Learning, AI models, and Python. But what if I told you it’s also one of the best hidden gems for hosting your full-stack web applications for &lt;strong&gt;free&lt;/strong&gt;?&lt;/p&gt;

&lt;p&gt;When building personal projects or testing heavy architectures, finding a reliable free hosting tier can be a headache. Vercel and Netlify are great for the frontend, but if you have a custom backend or need a specific Dockerized environment, you usually have to pull out your credit card.&lt;/p&gt;

&lt;p&gt;Today, I’ll show you how to use &lt;a href="https://huggingface.co/spaces" rel="noopener noreferrer"&gt;Hugging Face Spaces&lt;/a&gt; to host your Dockerized application (like a Next.js or Node.js app) completely for free.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Hugging Face Spaces?
&lt;/h2&gt;

&lt;p&gt;Hugging Face offers a "Blank Space" option powered by Docker. The free hardware tier gives you:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;2 vCPUs&lt;/li&gt;
&lt;li&gt;16 GB RAM&lt;/li&gt;
&lt;li&gt;50 GB Disk Space&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;For a pet project or an MVP, this is incredibly generous. Let’s get your app up and running in 4 simple steps.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  Step 1: Create a New Space
&lt;/h3&gt;

&lt;p&gt;Go to Hugging Face and create an account if you don't have one.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fmcci9j6loy2d75parhn2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fmcci9j6loy2d75parhn2.png" alt="New space" width="800" height="259"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Click on your profile picture -&amp;gt; New Space.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Name your space (e.g., my-awesome-app).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Choose a License.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;In Select the Space SDK, choose Docker and select Blank.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Keep the Space hardware on the Free tier.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Click Create Space.&lt;br&gt;
&lt;/p&gt;
&lt;div class="crayons-card c-embed"&gt;

  
&lt;h3&gt;
  
  
  Step 2: The Golden Rule (Port 7860)
&lt;/h3&gt;

&lt;p&gt;Here is the most &lt;strong&gt;important&lt;/strong&gt; part of this tutorial: Hugging Face Spaces route traffic exclusively to port 7860.&lt;br&gt;

&lt;/p&gt;
&lt;/div&gt;

Whatever framework you are using (NestJS, Next.js, Express, etc.), you must expose and run your application on port 7860 inside your container.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Step 3: Write Your Dockerfile
&lt;/h3&gt;

&lt;p&gt;Let’s say you are deploying a Next.js or Node.js application. You need to create a Dockerfile in the root of your repository.&lt;/p&gt;

&lt;p&gt;Here is a ready-to-use boilerplate for a Node-based environment:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight docker"&gt;&lt;code&gt;&lt;span class="c"&gt;# Use a lightweight Node.js image&lt;/span&gt;
&lt;span class="k"&gt;FROM&lt;/span&gt;&lt;span class="s"&gt; node:18-alpine&lt;/span&gt;

&lt;span class="c"&gt;# Set the working directory&lt;/span&gt;
&lt;span class="k"&gt;WORKDIR&lt;/span&gt;&lt;span class="s"&gt; /app&lt;/span&gt;

&lt;span class="c"&gt;# Copy package.json and install dependencies&lt;/span&gt;
&lt;span class="k"&gt;COPY&lt;/span&gt;&lt;span class="s"&gt; package*.json ./&lt;/span&gt;
&lt;span class="k"&gt;RUN &lt;/span&gt;npm &lt;span class="nb"&gt;install&lt;/span&gt;

&lt;span class="c"&gt;# Copy the rest of your application code&lt;/span&gt;
&lt;span class="k"&gt;COPY&lt;/span&gt;&lt;span class="s"&gt; . .&lt;/span&gt;

&lt;span class="c"&gt;# Build your app (if you are using Next.js or TypeScript)&lt;/span&gt;
&lt;span class="k"&gt;RUN &lt;/span&gt;npm run build

&lt;span class="c"&gt;# EXPOSE THE HUGGING FACE PORT&lt;/span&gt;
&lt;span class="k"&gt;EXPOSE&lt;/span&gt;&lt;span class="s"&gt; 7860&lt;/span&gt;

&lt;span class="c"&gt;# Start the application on port 7860&lt;/span&gt;
&lt;span class="c"&gt;# Make sure your server dynamically accepts the PORT env variable or is hardcoded to 7860&lt;/span&gt;
&lt;span class="k"&gt;ENV&lt;/span&gt;&lt;span class="s"&gt; PORT=7860&lt;/span&gt;
&lt;span class="k"&gt;CMD&lt;/span&gt;&lt;span class="s"&gt; ["npm", "start"]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Step 4: Push Your Code
&lt;/h3&gt;

&lt;p&gt;Hugging Face Spaces act just like Git repositories. You have two options:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Upload your files directly via the browser interface in the    "Files" tab.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Clone the repository locally and push your code via Git:&lt;br&gt;
&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://huggingface.co/spaces/YOUR_USERNAME/YOUR_SPACE_NAME
&lt;span class="nb"&gt;cd &lt;/span&gt;YOUR_SPACE_NAME
&lt;span class="c"&gt;# Add your app files here, including the Dockerfile&lt;/span&gt;
git add &lt;span class="nb"&gt;.&lt;/span&gt;
git commit &lt;span class="nt"&gt;-m&lt;/span&gt; &lt;span class="s2"&gt;"Initial commit: App setup and Dockerfile"&lt;/span&gt;
git push
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  The Result
&lt;/h2&gt;

&lt;p&gt;Once you push the code, Hugging Face will automatically start building your Docker image. You can watch the logs in real-time in the "Logs" tab. Once the build is successful, your app will be live and accessible via a public URL!&lt;/p&gt;

&lt;h2&gt;
  
  
  Wrapping Up
&lt;/h2&gt;

&lt;p&gt;Using Hugging Face Docker Spaces is a game-changer for deploying full-stack MVPs, testing complex architectures, or just showcasing your portfolio projects without worrying about hosting bills.&lt;/p&gt;

&lt;p&gt;Have you ever tried using Hugging Face for non-ML projects? Let me know in the comments below! 👇&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>programming</category>
      <category>docker</category>
      <category>showdev</category>
    </item>
  </channel>
</rss>
