-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Add response types for APIs. - Fix test errors when running on Linux.
- Loading branch information
Showing
12 changed files
with
107 additions
and
67 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
FROM mcr.microsoft.com/mssql/server:2019-latest | ||
COPY sql /app | ||
COPY entrypoint.sh /app | ||
WORKDIR /app | ||
COPY ./MyAlbum.WebSPA/sql . | ||
COPY ./MyAlbum.Docker/db/entrypoint.sh . | ||
EXPOSE 1433/tcp | ||
CMD /bin/bash ./entrypoint.sh |
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
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 |
---|---|---|
@@ -1,8 +1,45 @@ | ||
FROM mcr.microsoft.com/dotnet/core/aspnet:3.1 | ||
FROM mcr.microsoft.com/dotnet/core/sdk:3.1 as publish | ||
WORKDIR /src | ||
# update | ||
RUN apt-get update | ||
# install curl | ||
RUN apt-get install curl | ||
# get install script and pass it to execute: | ||
RUN curl -sL https://deb.nodesource.com/setup_15.x | bash | ||
# and install node | ||
RUN apt-get install nodejs | ||
# confirm that it was successful | ||
RUN node -v | ||
# npm installs automatically | ||
RUN npm -v | ||
# copy project files | ||
COPY ./MyAlbum.WebSPA . | ||
RUN dotnet restore | ||
RUN dotnet publish MyAlbum.WebSPA.csproj -c Release -o /app | ||
# cleanup unused publish files | ||
RUN rm -rf "/app/runtimes/linux-x86" | ||
RUN rm -rf "/app/runtimes/osx-x64" | ||
RUN rm -rf "/app/runtimes/win" | ||
RUN rm -rf "/app/runtimes/win-arm64" | ||
RUN rm -rf "/app/runtimes/win-x64" | ||
RUN rm -rf "/app/runtimes/win-x86" | ||
RUN rm -rf "/app/cs" | ||
RUN rm -rf "/app/de" | ||
RUN rm -rf "/app/es" | ||
RUN rm -rf "/app/fr" | ||
RUN rm -rf "/app/it" | ||
RUN rm -rf "/app/ja" | ||
RUN rm -rf "/app/ko" | ||
RUN rm -rf "/app/pl" | ||
RUN rm -rf "/app/pt-BR" | ||
RUN rm -rf "/app/ru" | ||
RUN rm -rf "/app/tr" | ||
RUN rm -rf "/app/zh-Hans" | ||
RUN rm -rf "/app/zh-Hant" | ||
|
||
FROM mcr.microsoft.com/dotnet/core/aspnet:3.1 as final | ||
WORKDIR /app | ||
RUN apt-get update && apt-get install -y libgdiplus | ||
RUN apt-get update && apt-get install -y libgomp1 | ||
COPY publish /app | ||
COPY entrypoint.sh /app | ||
WORKDIR /app | ||
#EXPOSE 80/tcp 443/tcp | ||
CMD /bin/bash ./entrypoint.sh | ||
COPY --from=publish /app /app | ||
ENTRYPOINT [ "dotnet", "MyAlbum.WebSPA.dll" ] |
This file was deleted.
Oops, something went wrong.
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
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
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
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
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
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
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