Prepared for transition to extensin repo
This commit is contained in:
		
							
								
								
									
										11
									
								
								Dockerfile
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								Dockerfile
									
									
									
									
									
								
							@@ -1,11 +0,0 @@
 | 
				
			|||||||
FROM registry.odit.services/hub/library/node:16-alpine3.13
 | 
					 | 
				
			||||||
WORKDIR /app
 | 
					 | 
				
			||||||
COPY package.json *.config.cjs *.config.js ./
 | 
					 | 
				
			||||||
RUN yarn
 | 
					 | 
				
			||||||
COPY src ./src
 | 
					 | 
				
			||||||
COPY static ./static
 | 
					 | 
				
			||||||
RUN yarn build
 | 
					 | 
				
			||||||
# final image
 | 
					 | 
				
			||||||
FROM registry.odit.services/hub/fholzer/nginx-brotli:v1.19.1
 | 
					 | 
				
			||||||
COPY --from=0 /app/build /usr/share/nginx/html
 | 
					 | 
				
			||||||
COPY ./nginx.conf /etc/nginx/nginx.conf
 | 
					 | 
				
			||||||
@@ -1,6 +0,0 @@
 | 
				
			|||||||
version: '3'
 | 
					 | 
				
			||||||
services:
 | 
					 | 
				
			||||||
  http:
 | 
					 | 
				
			||||||
    build: .
 | 
					 | 
				
			||||||
    ports:
 | 
					 | 
				
			||||||
      - 4269:80
 | 
					 | 
				
			||||||
							
								
								
									
										0
									
								
								manifest.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								manifest.json
									
									
									
									
									
										Normal file
									
								
							
							
								
								
									
										49
									
								
								nginx.conf
									
									
									
									
									
								
							
							
						
						
									
										49
									
								
								nginx.conf
									
									
									
									
									
								
							@@ -1,49 +0,0 @@
 | 
				
			|||||||
events {
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
http {
 | 
					 | 
				
			||||||
    include mime.types;
 | 
					 | 
				
			||||||
    sendfile on;
 | 
					 | 
				
			||||||
    server {
 | 
					 | 
				
			||||||
        error_page 404 /index.html;
 | 
					 | 
				
			||||||
        root /usr/share/nginx/html;
 | 
					 | 
				
			||||||
        location ~ /index\.html$ {
 | 
					 | 
				
			||||||
            internal;
 | 
					 | 
				
			||||||
            add_header Cache-Control 'no-store';
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        location ~* \.(png|jpg|jpeg|webp|gif|ico|woff|otf|ttf|eot|svg|txt|pdf|docx?|xlsx?)$ {
 | 
					 | 
				
			||||||
            access_log off;
 | 
					 | 
				
			||||||
            expires 1y;
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        location / {
 | 
					 | 
				
			||||||
            try_files $uri $uri/ /index.html;
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        # --- GZIP
 | 
					 | 
				
			||||||
        gzip on;
 | 
					 | 
				
			||||||
        gzip_disable "msie6";
 | 
					 | 
				
			||||||
        gzip_vary on;
 | 
					 | 
				
			||||||
        gzip_proxied any;
 | 
					 | 
				
			||||||
        gzip_comp_level 6;
 | 
					 | 
				
			||||||
        gzip_buffers 16 8k;
 | 
					 | 
				
			||||||
        gzip_http_version 1.1;
 | 
					 | 
				
			||||||
        gzip_types application/javascript
 | 
					 | 
				
			||||||
        application/rss+xml
 | 
					 | 
				
			||||||
        application/vnd.ms-fontobject
 | 
					 | 
				
			||||||
        application/x-font
 | 
					 | 
				
			||||||
        application/x-font-opentype
 | 
					 | 
				
			||||||
        application/x-font-otf
 | 
					 | 
				
			||||||
        application/x-font-truetype
 | 
					 | 
				
			||||||
        application/x-font-ttf
 | 
					 | 
				
			||||||
        application/x-javascript
 | 
					 | 
				
			||||||
        application/xhtml+xml
 | 
					 | 
				
			||||||
        application/xml
 | 
					 | 
				
			||||||
        font/opentype
 | 
					 | 
				
			||||||
        font/otf
 | 
					 | 
				
			||||||
        font/ttf
 | 
					 | 
				
			||||||
        image/svg+xml
 | 
					 | 
				
			||||||
        image/x-icon
 | 
					 | 
				
			||||||
        text/css
 | 
					 | 
				
			||||||
        text/javascript
 | 
					 | 
				
			||||||
        text/plain
 | 
					 | 
				
			||||||
        text/xml;
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
@@ -1,5 +1,5 @@
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
	"name": "@odit/shortener-frontend",
 | 
						"name": "@odit/linkylinky-extension",
 | 
				
			||||||
	"version": "0.0.1",
 | 
						"version": "0.0.1",
 | 
				
			||||||
	"scripts": {
 | 
						"scripts": {
 | 
				
			||||||
		"dev": "svelte-kit dev",
 | 
							"dev": "svelte-kit dev",
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user