forked from Botanical/BotanJS
		
	Changed the compiler source
This commit is contained in:
		@@ -2,15 +2,16 @@ FROM alpine:latest
 | 
				
			|||||||
WORKDIR /app
 | 
					WORKDIR /app
 | 
				
			||||||
 | 
					
 | 
				
			||||||
RUN mkdir -p /opt/utils
 | 
					RUN mkdir -p /opt/utils
 | 
				
			||||||
RUN wget -O /opt/utils/closure.jar "https://repo1.maven.org/maven2/com/google/javascript/closure-compiler/v20200830/closure-compiler-v20200830.jar"
 | 
					RUN wget -O /opt/utils/closure.jar "https://github.com/tgckpg/BotanJS/releases/download/compressors/closure.jar"
 | 
				
			||||||
RUN wget -O /opt/utils/yuicompressor.jar "https://github.com/yui/yuicompressor/releases/download/v2.4.8/yuicompressor-2.4.8.jar"
 | 
					RUN wget -O /opt/utils/yuicompressor.jar "https://github.com/tgckpg/BotanJS/releases/download/compressors/yuicompressor.jar"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
RUN apk add --update bash python3 uwsgi uwsgi-python; python3 -m ensurepip
 | 
					RUN apk add --update bash python3 uwsgi uwsgi-python openjdk11-jre-headless; python3 -m ensurepip
 | 
				
			||||||
 | 
					
 | 
				
			||||||
RUN echo "www-data:x:33:33:www-data:/var/www:/usr/sbin/nologin" >> /etc/passwd; echo "www-data:x:33:" >> /etc/group
 | 
					RUN echo "www-data:x:33:33:www-data:/var/www:/usr/sbin/nologin" >> /etc/passwd; echo "www-data:x:33:" >> /etc/group
 | 
				
			||||||
RUN chown www-data:www-data . -R
 | 
					RUN chown www-data:www-data . -R
 | 
				
			||||||
 | 
					
 | 
				
			||||||
RUN pip3 install Flask redis compressinja Celery
 | 
					RUN pip3 install Flask redis compressinja Celery
 | 
				
			||||||
 | 
					
 | 
				
			||||||
USER www-data
 | 
					USER www-data
 | 
				
			||||||
 | 
					
 | 
				
			||||||
EXPOSE 5000
 | 
					EXPOSE 5000
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										4
									
								
								k8s.yaml
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								k8s.yaml
									
									
									
									
									
								
							@@ -19,7 +19,7 @@ spec:
 | 
				
			|||||||
            path: /srv/astrostorage
 | 
					            path: /srv/astrostorage
 | 
				
			||||||
      containers:
 | 
					      containers:
 | 
				
			||||||
        - name: web
 | 
					        - name: web
 | 
				
			||||||
          image: 192.168.80.4:32000/sites/astrojs:b00027
 | 
					          image: 192.168.80.4:32000/sites/astrojs:b00031
 | 
				
			||||||
          volumeMounts:
 | 
					          volumeMounts:
 | 
				
			||||||
            - mountPath: "/app/cache"
 | 
					            - mountPath: "/app/cache"
 | 
				
			||||||
              name: astrojs-cache
 | 
					              name: astrojs-cache
 | 
				
			||||||
@@ -33,7 +33,7 @@ spec:
 | 
				
			|||||||
        - name: redis
 | 
					        - name: redis
 | 
				
			||||||
          image: redis:6.0.8-alpine
 | 
					          image: redis:6.0.8-alpine
 | 
				
			||||||
        - name: compiler
 | 
					        - name: compiler
 | 
				
			||||||
          image: 192.168.80.4:32000/sites/astrojs:b00027
 | 
					          image: 192.168.80.4:32000/sites/astrojs:b00031
 | 
				
			||||||
          volumeMounts:
 | 
					          volumeMounts:
 | 
				
			||||||
            - mountPath: "/app/cache"
 | 
					            - mountPath: "/app/cache"
 | 
				
			||||||
              name: astrojs-cache
 | 
					              name: astrojs-cache
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user