Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed html path for case sensitive problem. #9

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# create the build instance
FROM mcr.microsoft.com/dotnet/core/sdk:3.1 AS build

WORKDIR /source
COPY /. ./

#restore
RUN dotnet restore

# build with configuration
RUN dotnet build TodoApi.csproj -c Release

RUN dotnet publish TodoApi.csproj -c Release -o /src/output

# create the runtime instance
FROM mcr.microsoft.com/dotnet/core/aspnet:3.1-alpine AS runtime

# add globalization support
RUN apk add --no-cache icu-libs
ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false

# installs required packages
RUN apk add libgdiplus --no-cache --repository http://dl-3.alpinelinux.org/alpine/edge/testing/ --allow-untrusted
RUN apk add libc-dev --no-cache

COPY --from=build /src/output .

ENTRYPOINT ["dotnet", "TodoApi.dll"]
25 changes: 14 additions & 11 deletions wwwroot/app/scripts/app.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
'use strict';
angular.module('todoApp', ['ngRoute'])
.config(['$routeProvider', '$httpProvider', function ($routeProvider, $httpProvider) {

"use strict";
angular.module("todoApp", ["ngRoute"]).config([
"$routeProvider",
"$httpProvider",
function ($routeProvider, $httpProvider) {
// disable IE ajax request caching
if (!$httpProvider.defaults.headers.get) {
$httpProvider.defaults.headers.get = {};
$httpProvider.defaults.headers.get = {};
}
$httpProvider.defaults.headers.get['If-Modified-Since'] = '0';
$httpProvider.defaults.headers.get["If-Modified-Since"] = "0";

$routeProvider.when("/Home", {
$routeProvider
.when("/Home", {
controller: "todoListCtrl",
templateUrl: "/App/Views/TodoList.html",
}).otherwise({ redirectTo: "/Home" });

}]);
templateUrl: "/app/views/TodoList.html",
})
.otherwise({ redirectTo: "/Home" });
},
]);