简体   繁体   中英

Docker COPY index.html throws error in laravel project

My Docker file contents:

FROM nginx:1.18 COPY index.html /usr/share/nginx/html

Gitlab Runner log error message: Step 2/2: COPY index.html /usr/share/nginx/html COPY failed: file not found in build context or excluded by.dockerignore: stat index.html: file does not exist

Setup: It is laravel app . So no index.html file exists…

I have no idea how to proceed…

Thx!

As suggested by sytech I simply needed to delete COPY line.

Because, in my case, I don't need to copy anything. Line was taken from tutorial of setting Gitlab runner.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM