| 
									
										
										
										
											2019-03-29 22:08:04 +01:00
										 |  |  | FROM node:10.15.3-alpine
 | 
					
						
							| 
									
										
										
										
											2018-06-10 15:06:52 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | # Create app directory
 | 
					
						
							|  |  |  | WORKDIR /usr/src/app
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-11-30 05:41:45 +00:00
										 |  |  | # Copy both package.json and package-lock.json
 | 
					
						
							| 
									
										
										
										
											2018-06-10 15:06:52 -04:00
										 |  |  | # where available (npm@5+)
 | 
					
						
							| 
									
										
										
										
											2018-11-30 05:41:45 +00:00
										 |  |  | COPY package.json package-lock.json ./
 | 
					
						
							| 
									
										
										
										
											2018-06-10 15:06:52 -04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-11-30 05:41:45 +00:00
										 |  |  | # Install app dependencies
 | 
					
						
							|  |  |  | RUN set -x \
 | 
					
						
							|  |  |  |     && apk add --no-cache --virtual .build-dependencies \
 | 
					
						
							|  |  |  |         autoconf \
 | 
					
						
							|  |  |  |         automake \
 | 
					
						
							|  |  |  |         g++ \
 | 
					
						
							|  |  |  |         gcc \
 | 
					
						
							|  |  |  |         libtool \
 | 
					
						
							|  |  |  |         make \
 | 
					
						
							|  |  |  |         nasm \
 | 
					
						
							| 
									
										
										
										
											2019-01-07 21:21:23 +00:00
										 |  |  |         libpng-dev \
 | 
					
						
							| 
									
										
										
										
											2018-11-30 05:41:45 +00:00
										 |  |  |     && npm install --production \
 | 
					
						
							|  |  |  |     && apk del .build-dependencies
 | 
					
						
							| 
									
										
										
										
											2018-06-10 15:06:52 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | # Bundle app source
 | 
					
						
							|  |  |  | COPY . .
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | EXPOSE 8080
 | 
					
						
							| 
									
										
										
										
											2018-11-30 05:41:45 +00:00
										 |  |  | CMD [ "node", "./src/www" ]
 |