resolved npm cache clean error & created forgotten directory
This commit is contained in:
		
							parent
							
								
									6775b427a5
								
							
						
					
					
						commit
						86abee6965
					
				
					 2 changed files with 3 additions and 3 deletions
				
			
		| 
						 | 
					@ -1,8 +1,7 @@
 | 
				
			||||||
FROM node:alpine
 | 
					FROM node:alpine
 | 
				
			||||||
COPY . /usr/src/app
 | 
					COPY . /usr/src/app
 | 
				
			||||||
WORKDIR /usr/src/app
 | 
					WORKDIR /usr/src/app
 | 
				
			||||||
RUN npm install && \
 | 
					RUN npm install --no-cache
 | 
				
			||||||
    npm cache clean
 | 
					 | 
				
			||||||
EXPOSE 8080
 | 
					EXPOSE 8080
 | 
				
			||||||
RUN chmod +x /usr/src/app/docker-entrypoint.sh
 | 
					RUN chmod +x /usr/src/app/docker-entrypoint.sh
 | 
				
			||||||
ENTRYPOINT ["/usr/src/app/docker-entrypoint.sh", "npm", "start"]
 | 
					ENTRYPOINT ["/usr/src/app/docker-entrypoint.sh", "npm", "start"]
 | 
				
			||||||
| 
						 | 
					@ -2,6 +2,7 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
set -e
 | 
					set -e
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					mkdir /usr/src/app/external-public/
 | 
				
			||||||
cp -R /usr/src/app/public/* /usr/src/app/external-public/
 | 
					cp -R /usr/src/app/public/* /usr/src/app/external-public/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
exec "$@"
 | 
					exec "$@"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue