daily pastebin goal
60%
SHARE
TWEET

Untitled

a guest Mar 25th, 2019 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # 保存在前端项目的根目录下
  2. # docker build -t xxxclient .  <- 注意有"."
  3. # docker run (-d) -p 80:80 xxclient  <- 这一步可以配置-v
  4. # docker ps  <- 找到 containerId
  5. # docker exec -it containerId sh
  6.  
  7. FROM  nginx:alpine
  8.  
  9. # from -> to
  10. COPY ./nginx /etc/nginx/conf.d
  11. # from -> to
  12. COPY ./dist/webclient/ /usr/share/nginx/html
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top