Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

nginx dockerfile

FROM nginx
COPY static-html-directory /usr/share/nginx/html
Comment

nginx docker

FROM nginx:latest

RUN rm /etc/nginx/conf.d/default.conf
COPY docker/nginx/example.conf /etc/nginx/conf.d/
Comment

dockerfile nginx example

$ docker run --name mynginx2 --mount type=bind,source=/var/www,target=/usr/share/nginx/html,readonly --mount source=/var/nginx/conf,target=/etc/nginx/conf,readonly -p 80:80 -d nginx
Comment

PREVIOUS NEXT
Code Example
Shell :: tailwindcss 
Shell :: homebrew without sudo mac 
Shell :: linux iso dd 
Shell :: kill docker 
Shell :: push image to docker hub 
Shell :: autostart service linux 
Shell :: install adminlte in laravel 
Shell :: remove directory not empty windows 
Shell :: gitignore generator 
Shell :: start up vagrant 
Shell :: git how to add remote 
Shell :: linux show current memory usage 
Shell :: how to install telegram send 
Shell :: jenkins installation on ubuntu 
Shell :: manjaro linux system information 
Shell :: 504 gateway time-out nginx/1.18.0 (ubuntu) 
Shell :: flutter android embedding check version 
Shell :: windows how to kill localhost:3000 
Shell :: add ssh to github 
Shell :: python print sql in shell_plus 
Shell :: docker push to private registry 
Shell :: create file in linux using cat 
Shell :: how to restore deleted branch in git 
Shell :: how to install zsh using brew 
Shell :: install spotify on ubuntu 
Shell :: bash get public ip 
Shell :: git pull a specific sha 
Shell :: npm user install packages 
Shell :: store env file in firebase functions 
Shell :: git clone without folder 
ADD CONTENT
Topic
Content
Source link
Name
9+2 =