Skip to content

Commit 1a10ca0

Browse files
author
Highlander Paiva
committed
adding node and dockerfile
1 parent f89b494 commit 1a10ca0

File tree

5 files changed

+93
-3
lines changed

5 files changed

+93
-3
lines changed

.idea/.idea.AspDotnetVueJs/.idea/jsLibraryMappings.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/.idea.AspDotnetVueJs/.idea/misc.xml

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
<Project Sdk="Microsoft.NET.Sdk.Web">
1+
<Project Sdk="Microsoft.NET.Sdk.Web">
22

33
<PropertyGroup>
44
<TargetFramework>netcoreapp2.2</TargetFramework>
55
<AspNetCoreHostingModel>InProcess</AspNetCoreHostingModel>
66
</PropertyGroup>
77

88
<ItemGroup>
9-
<PackageReference Include="Microsoft.AspNetCore.App"/>
10-
<PackageReference Include="Microsoft.AspNetCore.Razor.Design" Version="2.2.0" PrivateAssets="All"/>
9+
<PackageReference Include="Microsoft.AspNetCore.App" />
10+
<PackageReference Include="Microsoft.AspNetCore.Razor.Design" Version="2.2.0" PrivateAssets="All" />
1111
</ItemGroup>
1212

1313
</Project>

AspDotnetVueJS/Dockerfile

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Build the container with Source code compiled
2+
FROM mcr.microsoft.com/dotnet/core/sdk:2.2-alpine3.8 as buildenv
3+
WORKDIR /source
4+
RUN apk add --update nodejs nodejs-npm
5+
COPY *.csproj .
6+
RUN dotnet restore
7+
COPY . .
8+
# Publishing will also restore (install) the npm packages.
9+
RUN dotnet publish -c Release -o /app/ -r linux-musl-x64
10+
11+
# Stage 2 - Creating Image for compiled app
12+
FROM mcr.microsoft.com/dotnet/core/runtime:2.2-alpine3.8 as baseimage
13+
RUN addgroup -S coreApp && adduser -S -G coreApp coreApp
14+
15+
# Define other environment variable if needed.
16+
ENV ASPNETCORE_URLS=http://+:$port
17+
18+
WORKDIR /app
19+
COPY --from=buildenv /app .
20+
RUN chown -R coreApp:coreApp /app
21+
22+
# Replace the application name if required.
23+
ENTRYPOINT ["dotnet", "AspDotnetVueJs.dll"]
24+
EXPOSE $port

AspDotnetVueJS/package.json

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
{
2+
"name": "aspdotnet-vuejs",
3+
"description": "ASP.NET Core & VueJS",
4+
"author": "Highlander Paiva",
5+
"repository": {
6+
"url": "https://github.com/hvpaiva/aspdotnet-vuejs"
7+
},
8+
"license": "MIT",
9+
"scripts": {
10+
"build": "webpack --config build/webpack.config.js --hide-modules --progress",
11+
"lint": "eslint ./ClientApp/ --ext .js,.vue --fix"
12+
},
13+
"dependencies": {
14+
"axios": "^0.18.0",
15+
"vue": "^2.6.8",
16+
"vue-router": "^3.0.2",
17+
"vuex": "^3.1.0",
18+
"vuex-router-sync": "^5.0.0"
19+
},
20+
"devDependencies": {
21+
"@babel/core": "^7.3.4",
22+
"@babel/plugin-transform-async-to-generator": "^7.3.4",
23+
"@babel/plugin-transform-runtime": "^7.3.4",
24+
"@babel/preset-env": "^7.3.4",
25+
"@babel/runtime": "^7.3.4",
26+
"aspnet-webpack": "^3.0.0",
27+
"babel-eslint": "^10.0.1",
28+
"babel-loader": "^8.0.5",
29+
"babel-preset-env": "^1.7.0",
30+
"copy-webpack-plugin": "^5.0.0",
31+
"css-loader": "^2.1.0",
32+
"eslint": "^5.15.1",
33+
"eslint-config-airbnb": "^17.1.0",
34+
"eslint-plugin-import": "^2.16.0",
35+
"eslint-plugin-jsx-a11y": "^6.1.1",
36+
"eslint-plugin-node": "^8.0.1",
37+
"eslint-plugin-promise": "^4.0.1",
38+
"eslint-plugin-react": "^7.11.0",
39+
"eslint-plugin-vue": "^5.2.2",
40+
"file-loader": "^3.0.1",
41+
"html-webpack-plugin": "^3.2.0",
42+
"mini-css-extract-plugin": "^0.5.0",
43+
"node-sass": "^4.11.0",
44+
"optimize-css-assets-webpack-plugin": "^5.0.1",
45+
"picnic": "^6.5.0",
46+
"rimraf": "^2.6.3",
47+
"sass-loader": "^7.1.0",
48+
"uglifyjs-webpack-plugin": "^2.1.2",
49+
"vue-loader": "^15.7.0",
50+
"vue-style-loader": "^4.1.2",
51+
"vue-template-compiler": "^2.6.8",
52+
"webpack": "^4.29.6",
53+
"webpack-cli": "^3.2.3",
54+
"webpack-dev-middleware": "^3.6.0",
55+
"webpack-hot-middleware": "^2.24.3"
56+
}
57+
}

0 commit comments

Comments
 (0)