Skip to content

Instantly share code, notes, and snippets.

@filipececcon
Created July 25, 2017 17:00
Show Gist options
  • Save filipececcon/669f59ce5aaa8cb21f79337b2524b273 to your computer and use it in GitHub Desktop.
Save filipececcon/669f59ce5aaa8cb21f79337b2524b273 to your computer and use it in GitHub Desktop.
FROM alpine
# de qual imagem essa nova imagem será criada
MAINTAINER [email protected]
# responsável pela imagem
RUN mkdir /var/www
RUN echo "teste" > /var/www/arquivo.txt
# roda os comandos dentro da imagem
VOLUME /var/www
# compartilha a pasta com host
EXPOSE 80 443
# expõe as portas para comunicação http e https
WORKDIR /var/www
# definir qual diretório estará naquele momento
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment