-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdev.server.Dockerfile
More file actions
37 lines (27 loc) · 1.19 KB
/
dev.server.Dockerfile
File metadata and controls
37 lines (27 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Use the official .NET SDK image to build the application
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
# Set the working directory
WORKDIR /app
COPY FrontEASE.sln .
# Copy project files and restore dependencies
# Doing this to cache the restore step
COPY src/FrontEASE.Server/*.csproj ./src/FrontEASE.Server/
COPY src/FrontEASE.Client/*.csproj ./src/FrontEASE.Client/
COPY src/FrontEASE.Application/*.csproj ./src/FrontEASE.Application/
COPY src/FrontEASE.Infrastructure/*.csproj ./src/FrontEASE.Infrastructure/
COPY src/FrontEASE.Domain/*.csproj ./src/FrontEASE.Domain/
COPY src/FrontEASE.Shared/*.csproj ./src/FrontEASE.Shared/
COPY src/FrontEASE.DataContracts/*.csproj ./src/FrontEASE.DataContracts/
COPY src/FrontEASE.DataGenerator/*.csproj ./src/FrontEASE.DataGenerator/
RUN dotnet restore ./FrontEASE.sln
# Copy the remaining source code
COPY . .
ENV ASPNETCORE_URLS=http://+:4000
# COPY the entrypoint script
COPY dev-docker-entrypoint.sh .
RUN chmod +x ./dev-docker-entrypoint.sh
COPY ./src/FrontEASE.Server/* /app/FrontEASE.Server/
# Declare a volume for wwwroot to preserve its content
VOLUME /app/src/FrontEASE.Server/wwwroot
# Set the entry point
ENTRYPOINT [ "./dev-docker-entrypoint.sh" ]