This repository was archived by the owner on Jun 25, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3349164
commit ddb5b65
Showing
3 changed files
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Directories | ||
**/bin/ | ||
**/obj/ | ||
**/out/ | ||
**/node_modules/ | ||
node_modules | ||
|
||
# Files | ||
Dockerfile* | ||
**/*.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
FROM mcr.microsoft.com/dotnet/sdk:5.0-buster-slim AS build | ||
WORKDIR /app | ||
|
||
# copy csproj and restore as distinct layers | ||
COPY . . | ||
RUN dotnet restore | ||
|
||
# build app | ||
WORKDIR /app/Kaizen | ||
RUN dotnet build -c Release --no-restore | ||
|
||
# publish app | ||
FROM build as publish | ||
RUN dotnet publish -c Release -o /out --no-restore | ||
|
||
# final stage/image | ||
FROM mcr.microsoft.com/dotnet/aspnet:5.0-buster-slim | ||
WORKDIR /app | ||
EXPOSE 80 | ||
EXPOSE 443 | ||
|
||
COPY --from=publish /out . | ||
ENTRYPOINT [ "dotnet", "Kaizen.dll" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
version: "3.7" | ||
|
||
services: | ||
kaizen_web: | ||
build: . | ||
container_name: kaizen | ||
ports: | ||
- "3000:3000" | ||
depends_on: | ||
- kaizen_database | ||
kaizen_database: | ||
image: "mysql:latest" | ||
container_name: kayzen_mysql_server | ||
command: "--default-authentication-plugin=mysql_native_password" | ||
restart: "always" | ||
environment: | ||
MYSQL_ROOT_PASSWORD: "kaizen_db_password" | ||
MYSQL_DATABASE: kaizen | ||
volumes: | ||
kaizen_data: |