Docker COPY index.html throws error in laravel project

Viewed 19

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!

1 Answers

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.

Related