Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

docker file entrypoint script shell

FROM ubuntu:16.04
MAINTAINER limtaegeun <imori333@gmail.com>

RUN apt-get update
RUN apt-get install -y nginx
RUN echo "
daemon off;" >> /etc/nginx/nginx.conf

# Define mountable directories.
VOLUME ["/etc/nginx/sites-enabled", "/etc/nginx/certs", "/etc/nginx/conf.d", "/var/log/nginx", "/var/www/html"]

ENV CONTAINER_NAME nodejs
ENV SERVER_NAME myserver.com
ENV PEM_PATH /etc/nginx/certs/cert.pem
ENV KEY_PATH /etc/nginx/certs/cert.key

WORKDIR /etc/nginx

ADD ./sites-available/ssl /etc/nginx/sites-available/ssl
ADD ./docker-entrypoint.sh /etc/nginx/docker-entrypoint.sh
RUN chmod 777 /etc/nginx/docker-entrypoint.sh
EXPOSE 80 443
ENTRYPOINT /etc/nginx/docker-entrypoint.sh ${CONTAINER_NAME} ${SERVER_NAME} ${PEM_PATH} ${KEY_PATH}
CMD ["nginx"]
Comment

PREVIOUS NEXT
Code Example
Shell :: bash append to a file 
Shell :: ubuntu gitlab 
Shell :: sudo swapoff 
Shell :: run crontab locally in windows 
Shell :: print first word of each line by grep 
Shell :: dns_probe_finished_nxdomain ubuntu 
Shell :: script for restart redis service automatically 
Shell :: url_launcher 
Shell :: git newly created branch not showing 
Shell :: spinkit flutter 
Shell :: git revert remote branch 
Shell :: docker jenkins 
Shell :: display hidden files in linux 
Shell :: git remove file from repository 
Shell :: imagemagick compare pdf 
Shell :: run node api on rapberry pi 
Shell :: daily bing ubuntu 
Shell :: awk bash 
Shell :: libsound2-dev missing 
Shell :: sed allow root login 
Shell :: how to install alacritty on ubuntu 
Shell :: docker exec 
Shell :: maven update pom version multi module 
Shell :: golang msys2 
Shell :: install extension ext-gd * in fedora 
Shell :: kubectl update field 
Shell :: pip install softdelet 
Shell :: unzip mac terminal 
Shell :: delphes install 
Shell :: linux ls sort by biggest file first 
ADD CONTENT
Topic
Content
Source link
Name
3+8 =