File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change 1- FROM  node:16 -alpine as builder
1+ FROM  caddy:2.5.1-builder -alpine as builder
22
33#  make the 'app' folder the current working directory
44WORKDIR  /app
55
66#  copy both 'package.json' and 'package-lock.json' (if available)
77COPY  package*.json ./
88
9- #  install project dependencies
10- RUN  npm ci
11- 
129#  copy project files and folders to the current working directory (i.e. 'app' folder)
1310COPY  . .
1411
1512ARG  VUE_APP_VERSION_ID=production
1613ARG  VUE_APP_BUILD_ID=local
1714
1815#  build app for production with minification
19- RUN  npm run  build
16+ RUN  xcaddy  build
2017
2118FROM  caddy:2.5.1-alpine
2219
2320#  copy build artifacts to webserver root
2421RUN  rm -rf /usr/share/caddy
25- COPY  --from=builder /app/dist  /usr/share/caddy
22+ COPY  --from=builder /app/caddy  /usr/share/caddy
2623
2724#  copy webserver configuration
2825COPY  ./Caddyfile /etc/caddy/Caddyfile
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments