Coder Social home page Coder Social logo

Comments (7)

hayd avatar hayd commented on April 29, 2024

Ah, I see! How does this work with dockerhub publishing? Or do you do this instead (and just copy the dockerfile always)?
Do node etc. do this same ARG thing?

from deno_docker.

ebebbington avatar ebebbington commented on April 29, 2024

I'm not entirely sure to be honest, i'm unfamiliar with building docker images for docker hub. Actually.. i guess they tag their versions, which is the ARG eg FROM node:14.1.7

Maybe instead of an ARG, you could have tagged images? Not entirely sure how this would work though, and i'm guessing it might require manual work, whereas using ARG, you probably wouldn't have to make any changes whatsoever when a new Deno version is released

from deno_docker.

hayd avatar hayd commented on April 29, 2024

@ebebbington I think tagged images is what we do at the moment. I wonder if there is a way to have the best of both: tagged images that allow you to pass the ARG version to override should you so wish.

The benefit of dockerhub is it caches - though this is somewhat less of an issue for images that are not building (only downloading)...

from deno_docker.

hayd avatar hayd commented on April 29, 2024

@ebebbington In user code, you can do something like:

ARG  DENO_VERSION=latest
FROM hayd/debian-deno:${DENO_VERSION}

...

https://docs.docker.com/engine/reference/builder/#understand-how-arg-and-from-interact

from deno_docker.

ebebbington avatar ebebbington commented on April 29, 2024

Tbh i think it would be good enough for users to do:

FROM hayd/debian-deno:v1.5.3

I guess I was wrong to suggest an ARG if images are already tagged

So are you saying the above is already supported?

from deno_docker.

ebebbington avatar ebebbington commented on April 29, 2024

Yeeh i can see they are by looking at the readme, not sure how long that's been there xD Well if images are tagged i don't think there's a need for an ARG? If you agree then feel free to close this issue, i'm happy for it to as the 'question' has been resolved

from deno_docker.

hayd avatar hayd commented on April 29, 2024

Going to close but still unsure if this is for the best

from deno_docker.

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.