New Angular based web version #1
10
src/Vegasco-Web/.dockerignore
Normal file
10
src/Vegasco-Web/.dockerignore
Normal file
@@ -0,0 +1,10 @@
|
||||
node_modules
|
||||
npm-debug.log
|
||||
Dockerfile*
|
||||
docker-compose*
|
||||
.dockerignore
|
||||
.git
|
||||
.gitignore
|
||||
README.md
|
||||
LICENSE
|
||||
.vscode
|
||||
13
src/Vegasco-Web/Dockerfile
Normal file
13
src/Vegasco-Web/Dockerfile
Normal file
@@ -0,0 +1,13 @@
|
||||
FROM node:lts AS build
|
||||
RUN npm install -g pnpm
|
||||
ARG CONFIGURATION=development
|
||||
WORKDIR /usr/local/app
|
||||
COPY . .
|
||||
RUN pnpm install
|
||||
RUN pnpm "build:$CONFIGURATION"
|
||||
|
||||
FROM nginx:alpine
|
||||
WORKDIR /usr/share/nginx/html
|
||||
COPY --from=build /usr/local/app/dist/Vegasco-Web/browser .
|
||||
COPY nginx.conf /etc/nginx/nginx.conf
|
||||
EXPOSE 80
|
||||
@@ -17,7 +17,7 @@
|
||||
"build": {
|
||||
"builder": "@angular-devkit/build-angular:application",
|
||||
"options": {
|
||||
"outputPath": "dist/tmp",
|
||||
"outputPath": "dist/Vegasco-Web",
|
||||
"index": "src/index.html",
|
||||
"browser": "src/main.ts",
|
||||
"polyfills": [
|
||||
|
||||
13
src/Vegasco-Web/nginx.conf
Normal file
13
src/Vegasco-Web/nginx.conf
Normal file
@@ -0,0 +1,13 @@
|
||||
events { }
|
||||
http {
|
||||
include mime.types;
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
|
||||
location / {
|
||||
root /usr/share/nginx/html;
|
||||
try_files $uri $uri/ /index.html =404;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -7,7 +7,9 @@
|
||||
"start": "run-script-os",
|
||||
"start:win32": "ng serve --port %PORT% --configuration development",
|
||||
"start:default": "ng serve --port $PORT --configuration development",
|
||||
"build": "ng build",
|
||||
"build": "pnpm build:development",
|
||||
"build:development": "ng build",
|
||||
"build:production": "ng build --configuration production",
|
||||
"watch": "ng build --watch --configuration development",
|
||||
"test": "ng test"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user