diff --git a/Dockerfile/USAGE b/Dockerfile/USAGE index a24b2cfb..087dcba5 100644 --- a/Dockerfile/USAGE +++ b/Dockerfile/USAGE @@ -1,10 +1,8 @@ Description: Creates a new Docker configuration file. - By default Mono-based definition file is created. - To create CoreCLR based definition file use --coreclr option Example: - yo aspnet:Dockerfile [--coreclr] + yo aspnet:Dockerfile This will create: Dockerfile diff --git a/Dockerfile/index.js b/Dockerfile/index.js index e5053ccf..5f56ed0e 100644 --- a/Dockerfile/index.js +++ b/Dockerfile/index.js @@ -9,11 +9,7 @@ var Generator = module.exports = function Generator() { util.inherits(Generator, ScriptBase); Generator.prototype.createItem = function() { - // support CoreCLR runtime version of Docker image - // is provided by --coreclr option this.generateTemplateFile( - 'Dockerfile.txt', - 'Dockerfile', { - coreclr: (this.options.coreclr) ? this.options.coreclr : false - }); + 'Dockerfile.txt', + 'Dockerfile'); }; diff --git a/README.md b/README.md index 869d641f..c6af1df1 100644 --- a/README.md +++ b/README.md @@ -252,8 +252,6 @@ Produces `filename.coffee` ### Dockerfile Creates a new Docker configuration file. -By default `Mono` based definition file is created. -To create `CoreCLR` based definition file use `--coreclr` option Example: ``` diff --git a/templates/Dockerfile.txt b/templates/Dockerfile.txt index 0e4c303f..5ab41b3a 100644 --- a/templates/Dockerfile.txt +++ b/templates/Dockerfile.txt @@ -1,11 +1,11 @@ -<% if(!coreclr){ %>FROM microsoft/aspnet:1.0.0-rc1-update1<% } %><% if(coreclr){ %>FROM microsoft/aspnet:1.0.0-rc1-update1-coreclr<% } %> +FROM microsoft/dotnet:1.0.0-rc2-core RUN printf "deb http://ftp.us.debian.org/debian jessie main\n" >> /etc/apt/sources.list RUN apt-get -qq update && apt-get install -qqy sqlite3 libsqlite3-dev && rm -rf /var/lib/apt/lists/* COPY . /app WORKDIR /app -RUN ["dnu", "restore"] +RUN ["dotnet", "restore"] EXPOSE 5000/tcp -ENTRYPOINT ["dnx", "-p", "project.json", "Microsoft.AspNet.Server.Kestrel", "--server.urls", "http://0.0.0.0:5000"] +ENTRYPOINT ["dotnet", "run", "-p", "project.json"] diff --git a/test/subgenerators.js b/test/subgenerators.js index 26e91280..eb02e628 100644 --- a/test/subgenerators.js +++ b/test/subgenerators.js @@ -99,19 +99,11 @@ describe('Subgenerators without arguments tests', function() { util.fileCheck('should create tsconfig.json file', 'tsconfig.json'); }); - describe('aspnet:Dockerfile Mono-based', function() { + describe('aspnet:Dockerfile', function() { var filename = 'Dockerfile'; util.goCreate(filename); util.fileCheck('should create Dockerfile', filename); - util.fileContentCheck(filename, 'Check the content for Mono-based image tag', /FROM microsoft\/aspnet:1\.0\.0-rc1-update1/); - }); - - describe('aspnet:Dockerfile CoreCLR-based', function() { - var arg = '--coreclr'; - var filename = 'Dockerfile'; - util.goCreateWithArgs(filename, [arg]); - util.fileCheck('should create Dockerfile', filename); - util.fileContentCheck(filename, 'Check the content for CoreCLR-based image tag', /FROM microsoft\/aspnet:1\.0\.0-rc1-update1-coreclr/); + util.fileContentCheck(filename, 'Check the content for dotnet image tag', /FROM microsoft\/dotnet:1\.0\.0-rc2-core/); }); describe('aspnet:nuget', function() {