TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Layerfiles, Dockerfiles that build VMs

10 pointsby colinchartierover 2 years ago
Hey HN,<p>I’m excited to show you Layerfiles, an OSS project which gives you a single binary to build microvms using a syntax that looks like a Dockerfile.<p>The project is currently in alpha, but it’s already able to build a VM on Linux hosts.<p>MicroVMs are like containers, but have several upsides:<p>- They can run on any OS, so you don’t need to run a wrapper VM like Docker Desktop does.<p>- They also let you keep processes running during a build (RUN BACKGROUND), so you can run a webserver or build server in the background.<p>- You can generally run them rootless without any extra configuration.<p>Here’s an example Layerfile you can try:<p>FROM vm&#x2F;ubuntu:22.04<p>RUN BACKGROUND python3 -m http.server 8000<p>RUN curl localhost:8000<p>COPY . .<p>RUN ls<p>I&#x27;d love any comments or feedback! I’d also appreciate if someone could try building it for Mac or Windows.

4 comments

danielmogilnyover 2 years ago
Interesting stuff. We used singularity containers at Stratum in the past. What&#x27;s the similarities&#x2F;differences and advantages between them?
colinchartierover 2 years ago
GitHub: <a href="https:&#x2F;&#x2F;github.com&#x2F;webappio&#x2F;layerfiles" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;webappio&#x2F;layerfiles</a><p>Single binary download (linux x64 only for now): <a href="https:&#x2F;&#x2F;github.com&#x2F;webappio&#x2F;assets&#x2F;raw&#x2F;main&#x2F;lf" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;webappio&#x2F;assets&#x2F;raw&#x2F;main&#x2F;lf</a>
allen20008over 2 years ago
What are the main use cases for these? Like local development?
评论 #33058615 未加载
lucypyliover 2 years ago
How is this different from Kata containers or the other microvm-based Docker frameworks?
评论 #33058914 未加载