Exemplo de Docker File

From Basef
Jump to: navigation, search

Segue abaixo exemplo de Docker File:

FROM ubuntu
 
RUN apt-get update && apt-get install -y apache2
 
ADD app/ /var/www/html
 
COPY app /var/www/html
 
EXPOSE 80
 
CMD ["/usr/sbin/apache2ctl", "-D", "FOREGROUND"]