Open clarkindy opened 2 years ago
ln -s ...
).COPY
is to copy file from your host to the container. RUN cp
is to copy files inside the container.Let me know if you need more explanations. @clarkindy
COPY
is to copy file from your host to the container.RUN
cp is to copy files inside the container.
Oh, now I understand. Thank you!
1.
In Line 15:
When building with a modified version of this Dockerfile in my team's EC2 instance, the build process errored in the above line, mentioning that
/etc/nginx/sites-enabled/nginx.conf
already exists.Edit: This was because I replicated the typo in the presentation slides, which is fixed in the repo. You should change
sites-enabled
in Line 13 tosites-available
.2.
In Line 18:
Why do we use
RUN
here instead ofCOPY
?