Lab 3: Create an image with COPY instruction
Create an image with COPY instruction
FROM nginx:alpine
LABEL maintainer="microfocus"
COPY index.html /usr/share/nginx/html/
ENTRYPOINT ["nginx", "-g", "daemon off;"]echo "Welcome to Docker" > index.htmldocker image build -t cpy:v1 .docker container run -d --rm --name myapp1 -p 80:80 cpy:v1curl localhostCOPY instruction in Multi-stage Builds
Last updated