Skip to content

Commit

Permalink
Added timezone to Docker File -- will change to Env later. DB Build s…
Browse files Browse the repository at this point in the history
…cript not working yet.
  • Loading branch information
TWhidden committed Aug 6, 2018
1 parent c72455d commit e38808b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion HolidayShow.Data.Core/EfHolidayContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public EfHolidayContext(string cs)

public void UpdateDatabase()
{
this.Database.ExecuteSqlCommand(Resources.HolidayShow);
//this.Database.ExecuteSqlCommand(Resources.HolidayShow);
}

protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
Expand Down
3 changes: 3 additions & 0 deletions HolidayShowServer.Core/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ ENV DBPASS=""
ENV DBNAME=""
ENV PORT=$DEFAULTPORT

ENV TZ=America/Los_Angeles
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

FROM microsoft/dotnet:2.1-sdk AS build
WORKDIR /src

Expand Down

0 comments on commit e38808b

Please sign in to comment.