git clone https://github.com/MicrosoftDocs/mslearn-hotel-reservation-sys-
tem.git
cd mslearn-hotel-reservation-system/src
비주얼스튜디오코드로 Dockerfile 생성하기
tem.git
cd mslearn-hotel-reservation-system/src
비주얼스튜디오코드로 Dockerfile 생성하기
-
#1
FROM mcr.microsoft.com/dotnet/core/sdk:2.2
WORKDIR /src
COPY ["HotelReservationSystem/HotelReservationSystem.csproj", "HotelReservationSystem/"] COPY ["HotelReservationSystemTypes/HotelReservationSystemTypes.csproj", "HotelReservationSys- temTypes/"]
RUN dotnet restore "HotelReservationSystem/HotelReservationSystem.csproj"
#2
COPY . .
WORKDIR "/src/HotelReservationSystem"
RUN dotnet build "HotelReservationSystem.csproj" -c Release -o /app
#3
RUN dotnet publish "HotelReservationSystem.csproj" -c Release -o /app
#4
EXPOSE 80
WORKDIR /app
ENTRYPOINT ["dotnet", "HotelReservationSystem.dll"]
댓글 없음:
댓글 쓰기
참고: 블로그의 회원만 댓글을 작성할 수 있습니다.