Expo EAS Local Build Docker Image

https://news.ycombinator.com/rss Hits: 2
Summary

Expo Android Local Build Environment πŸš€ Meet eas-like-local-builder: a Docker image built to streamline local Expo Android app builds, mirroring the Expo Application Services (EAS) environment for local builds 🎯 Why Use This? πŸ€” EAS cloud building can be costy, local builds require dependencies. This image tries to mimic EAS' ubuntu-22.04-jdk-17-ndk-r26b Android build server image in your local (or CI/CD) environment.πŸ’₯ Get Started πŸ› οΈ Step 1: Grab the Image πŸ“¦ Pull It : docker pull erayalakese/eas-like-local-builder Or Build It Yourself: docker build -t eas-like-local-builder . Step 2: Run It πŸƒβ€β™‚οΈ Defaults to eas build --platform android --local with the development profile: docker container run -v /path/to/your/project:/app -w /app -it eas-like-local-builder Switch Profiles πŸ”„ Use the -e flag for a custom profile like production : docker container run -e PROFILE=production -v /path/to/your/project:/app -w /app -it eas-like-local-builder Control VCS Behavior 🚫 To skip version control system (VCS) checks during the build (handy if you’re working without a Git repo), set EAS_NO_VCS : docker container run -e EAS_NO_VCS=1 -v /path/to/your/project:/app -w /app -it eas-like-local-builder Override the Default Command βš™οΈ If you ever need to run a different command (e.g., eas login or a build with a different profile), you’ll need to override the CMD at runtime. You can do this by appending the new command to the docker run instruction, like: docker container run -v /path/to/your/project:/app -w /app -it eas-like-local-builder eas login Explanation of Flags πŸ“œ -v /path/to/your/project:/app : Mounts your project directory to /app inside the container. πŸ“‚ : Mounts your project directory to inside the container. πŸ“‚ -w /app : Sets the working directory to /app . 🏠 : Sets the working directory to . 🏠 -it : Runs the container interactively for commands that require input (e.g., EAS login). πŸ–₯️ : Runs the container interactively for commands that require input (e.g., EAS login). πŸ–₯️ -e PROFI...

First seen: 2025-04-22 23:42

Last seen: 2025-04-23 00:43