Questão
ID 1487900Disciplina: Tecnologia da Informação
Assunto: Docker
Ano: 2019 Banca: UFSCar - Universidade Federal de São Carlos Órgão: Universidade Federal de São Carlos
Considere o seguinte arquivo Dockerfile da figura abaixo (as linhas estão enumeradas):
.
1 __FROM ubuntu : 16.04 2 3 __RUN echo "abcde" > teste.txt 4 5 __COPY temp_file arquivo_temporario 6 7 __RUN apt-get update 8 9 __RUN apt-get install - y iputils-ping 10 11 __RUN apt - get update && apt - get install -y \ 12 ______git \ 13 ______htop \ 14 ______nano 15 16 __COPY entrypoint.sh entrypoint.sh 17 __RUN chmod +x entrypoint.sh 18 19 __ENTRYPOINT ["/entrypoint.sh"] |
.
E, abaixo, o conteúdo do arquivo entrypoint.sh:
1 | #!/usr/bin/env bash |
2 | echo "123" >> teste.txt |
3 | tail -f teste.txt |
Sabendo ainda que existe o arquivo temp_file, selecione a alternativa correta: