Giter VIP home page Giter VIP logo

Comments (6)

neomantra avatar neomantra commented on May 26, 2024 1

Correct, these images must be built from the root directory. Prior to #40 you could build from the "flavor"'s directory because nothing was COPYied. This also broke Docker's automated build as noted in that issue because it changes the working directory to that of the Dockerfile.

from docker-openresty.

axelssonHakan avatar axelssonHakan commented on May 26, 2024

https://hub.docker.com/r/openresty/openresty/builds/bgdcda7qz7yrvvfyokpj2p4/

Build failed: COPY failed: stat /var/lib/docker/tmp/docker-builder338523020/nginx.conf: no such file or directory

from docker-openresty.

axelssonHakan avatar axelssonHakan commented on May 26, 2024

And some more info :-)

The @1.13.6.1 doesn't seem to overwrite the conf. So the documentation refers to a version that hasn't been released, or?

https://github.com/openresty/docker-openresty/blob/1.13.6.1/alpine/Dockerfile

from docker-openresty.

neomantra avatar neomantra commented on May 26, 2024

Those are not tagged with 1.13.6.1. You have to use the untagged images which are at master.

See the bottom of #40

If you go to that 1.13.6.1 git tag, you will see the correct docs.

I haven’t received bug reports related to master so I probably will retag that soon.

Note that master uses OpenResty v1.13.6.1

from docker-openresty.

zabio3 avatar zabio3 commented on May 26, 2024

Where are you working in the directory?

$ pwd
~/docker-openresty
$ docker build -t myopenresty -f alpine/Dockerfile .

Unfortunately, (for practical and security reasons I guess), if you want to add/copy local content, it must be located under the same root path than the Dockerfile.

https://stackoverflow.com/questions/24537340/docker-adding-a-file-from-a-parent-directory

from docker-openresty.

neomantra avatar neomantra commented on May 26, 2024

I think this is taken care of with the latest releases.

from docker-openresty.

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.