Last active
August 18, 2016 10:45
-
-
Save nanlabsweb/78d5b2c5424b06eb372bf0ab120b74f8 to your computer and use it in GitHub Desktop.
POST - Dockerfile sample for post.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu | |
MAINTAINER NaN Labs | |
# install default aptitude apache2 | |
# try to use the less amount of RUN executions | |
# to reduce the image binary file | |
RUN apt-get update && apt-get install -y apache2 | |
# environment variable deployKey will be available | |
# when running the container | |
ENV deployKey, 123456 | |
# expose only these two ports | |
EXPOSE 80 443 | |
# exposes apache2 directories | |
VOLUME ["/var/log/apache2", "/var/www","/etc/apache2/sites-enabled/"] | |
# add an init file from the recipe bin dir to the container /tmp dir | |
COPY bin/init.sh /tmp/init.sh | |
# dynamic steps | |
# any future based env command could be run here | |
CMD /bin/bash | |
# this is the same as CMD but, but more expresive entrypoint | |
ENTRYPOINT tail -f /dev/null |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment