more tentative to fix build

This commit is contained in:
Michele 2020-11-22 22:18:20 +00:00
parent f67b20d6bb
commit 4fc7babd75
3 changed files with 76 additions and 76 deletions

View file

@ -27,7 +27,7 @@ RUN dotnet publish -c release -o /app --no-restore
FROM mcr.microsoft.com/dotnet/aspnet:5.0 FROM mcr.microsoft.com/dotnet/aspnet:5.0
WORKDIR /app WORKDIR /app
COPY --from=build /app ./ COPY --from=build /app ./
ENTRYPOINT ["dotnet", "Sledgemapper.Api.dll"] ENTRYPOINT ["dotnet", "/app/Sledgemapper.Api.dll"]
# # https://hub.docker.com/_/microsoft-dotnet-core # # https://hub.docker.com/_/microsoft-dotnet-core

View file

@ -1,53 +1,53 @@
// <auto-generated /> // // <auto-generated />
using System; // using System;
using Microsoft.EntityFrameworkCore; // using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure; // using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata; // using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations; // using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion; // using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using Sledgemapper.Helpers; // using Sledgemapper.Helpers;
namespace Sledgemapper.Migrations.SqlServerMigrations // namespace Sledgemapper.Migrations.SqlServerMigrations
{ // {
[DbContext(typeof(DataContext))] // [DbContext(typeof(DataContext))]
[Migration("20200102103423_InitialCreate")] // [Migration("20200102103423_InitialCreate")]
partial class InitialCreate // partial class InitialCreate
{ // {
protected override void BuildTargetModel(ModelBuilder modelBuilder) // protected override void BuildTargetModel(ModelBuilder modelBuilder)
{ // {
#pragma warning disable 612, 618 // #pragma warning disable 612, 618
modelBuilder // modelBuilder
.HasAnnotation("ProductVersion", "3.1.0") // .HasAnnotation("ProductVersion", "3.1.0")
.HasAnnotation("Relational:MaxIdentifierLength", 128) // .HasAnnotation("Relational:MaxIdentifierLength", 128)
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); // .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
modelBuilder.Entity("Sledgemapper.Entities.User", b => // modelBuilder.Entity("Sledgemapper.Entities.User", b =>
{ // {
b.Property<int>("Id") // b.Property<int>("Id")
.ValueGeneratedOnAdd() // .ValueGeneratedOnAdd()
.HasColumnType("int") // .HasColumnType("int")
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); // .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
b.Property<string>("FirstName") // b.Property<string>("FirstName")
.HasColumnType("nvarchar(max)"); // .HasColumnType("nvarchar(max)");
b.Property<string>("LastName") // b.Property<string>("LastName")
.HasColumnType("nvarchar(max)"); // .HasColumnType("nvarchar(max)");
b.Property<byte[]>("PasswordHash") // b.Property<byte[]>("PasswordHash")
.HasColumnType("varbinary(max)"); // .HasColumnType("varbinary(max)");
b.Property<byte[]>("PasswordSalt") // b.Property<byte[]>("PasswordSalt")
.HasColumnType("varbinary(max)"); // .HasColumnType("varbinary(max)");
b.Property<string>("Username") // b.Property<string>("Username")
.HasColumnType("nvarchar(max)"); // .HasColumnType("nvarchar(max)");
b.HasKey("Id"); // b.HasKey("Id");
b.ToTable("Users"); // b.ToTable("Users");
}); // });
#pragma warning restore 612, 618 // #pragma warning restore 612, 618
} // }
} // }
} // }

View file

@ -1,33 +1,33 @@
using Microsoft.EntityFrameworkCore.Migrations; // using Microsoft.EntityFrameworkCore.Migrations;
namespace Sledgemapper.Migrations.SqlServerMigrations // namespace Sledgemapper.Migrations.SqlServerMigrations
{ // {
public partial class InitialCreate : Migration // public partial class InitialCreate : Migration
{ // {
protected override void Up(MigrationBuilder migrationBuilder) // protected override void Up(MigrationBuilder migrationBuilder)
{ // {
migrationBuilder.CreateTable( // migrationBuilder.CreateTable(
name: "Users", // name: "Users",
columns: table => new // columns: table => new
{ // {
Id = table.Column<int>(nullable: false) // Id = table.Column<int>(nullable: false)
.Annotation("SqlServer:Identity", "1, 1"), // .Annotation("SqlServer:Identity", "1, 1"),
FirstName = table.Column<string>(nullable: true), // FirstName = table.Column<string>(nullable: true),
LastName = table.Column<string>(nullable: true), // LastName = table.Column<string>(nullable: true),
Username = table.Column<string>(nullable: true), // Username = table.Column<string>(nullable: true),
PasswordHash = table.Column<byte[]>(nullable: true), // PasswordHash = table.Column<byte[]>(nullable: true),
PasswordSalt = table.Column<byte[]>(nullable: true) // PasswordSalt = table.Column<byte[]>(nullable: true)
}, // },
constraints: table => // constraints: table =>
{ // {
table.PrimaryKey("PK_Users", x => x.Id); // table.PrimaryKey("PK_Users", x => x.Id);
}); // });
} // }
protected override void Down(MigrationBuilder migrationBuilder) // protected override void Down(MigrationBuilder migrationBuilder)
{ // {
migrationBuilder.DropTable( // migrationBuilder.DropTable(
name: "Users"); // name: "Users");
} // }
} // }
} // }