-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added dockerfile for render.com deployment
- Loading branch information
1 parent
54be1b9
commit 25e8295
Showing
18 changed files
with
40 additions
and
1,143 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,26 @@ | ||
# Use the official .NET SDK image for building the application (targeting .NET 8) | ||
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build-env | ||
WORKDIR /app | ||
|
||
# Copy the project file and restore any dependencies (via NuGet) | ||
COPY *.csproj ./ | ||
RUN dotnet restore | ||
|
||
# Copy the entire source code and build the project | ||
COPY . ./ | ||
RUN dotnet publish -c Release -o out | ||
|
||
# Use the official .NET runtime image for running the app (targeting .NET 8) | ||
FROM mcr.microsoft.com/dotnet/aspnet:8.0 | ||
WORKDIR /app | ||
COPY --from=build-env /app/out . | ||
|
||
# Set environment variables | ||
ENV ASPNETCORE_URLS=http://+:5000 | ||
ENV ASPNETCORE_ENVIRONMENT=Production | ||
|
||
# Expose the API port | ||
EXPOSE 5000 | ||
|
||
# Run the app | ||
ENTRYPOINT ["dotnet", "InventoryManagementSystem.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
115 changes: 0 additions & 115 deletions
115
InventoryManagementSystem/Migrations/20240905200818_InitialCreate.Designer.cs
This file was deleted.
Oops, something went wrong.
94 changes: 0 additions & 94 deletions
94
InventoryManagementSystem/Migrations/20240905200818_InitialCreate.cs
This file was deleted.
Oops, something went wrong.
100 changes: 0 additions & 100 deletions
100
InventoryManagementSystem/Migrations/20240906183020_model_change.cs
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.