Coder Social home page Coder Social logo

Use multi stage Docker builds about meteor-now HOT 5 OPEN

leo avatar leo commented on June 2, 2024 2
Use multi stage Docker builds

from meteor-now.

Comments (5)

jkrup avatar jkrup commented on June 2, 2024 2

@leo and @qualitymanifest I've started a branch locally to use multi-stage builds to help reduce the ultimate docker image size. Unfortunately the build time goes up somewhat substantially with the current approach, so I'll probably default for it to be off (for those using a paid tier of ∆now) and you'll need to pass a flag like meteor-now -m(--multistage)

from meteor-now.

qualitymanifest avatar qualitymanifest commented on June 2, 2024 1

Came here because I'm having this problem. My app which had previously deployed fine many times is now getting this error. Apparently this limit is not new - I found this comment from a staff member on zeit's slack channel:

we’ve always had this restriction, however we have implemented more checks for limits recently so they might have just started being enacted for your account

Also, yes, thank you very much for creating meteor-now! It's been incredibly useful for me.

from meteor-now.

bmackio avatar bmackio commented on June 2, 2024 1

I have successfully deployed a meteor app to now using their example app as a guide (https://github.com/zeit/now-examples/tree/master/node-meteor) which employs alpine.

The final size is 51MB. No error and I'm using cloud: v2

edit: actually, it works without the .dockerignore file

from meteor-now.

qualitymanifest avatar qualitymanifest commented on June 2, 2024

Cool! I'll keep my eyes peeled for the release. As for whether or not to have multistage builds be the default - from what I understand, the 100MB limit is not lifted with the paid plans. Per an email I got from Sergio at Zeit:

We limited the final built image to 100MiB in all plans.

I imagine most (all?) meteor projects are going to be over 100MB, so you might want to do it the other way around, and have a flag for non-multistage builds.

from meteor-now.

bmackio avatar bmackio commented on June 2, 2024

@jkrup For reference, here's an example @TooTallNate sent us for a meteor deploy using multi-stage deploy: https://github.com/zeit/now-examples/pull/49

from meteor-now.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.