mirror of
https://github.com/ivanch/tcc.git
synced 2025-08-25 15:21:49 +00:00
adicionando testes
This commit is contained in:
@@ -2,6 +2,7 @@ FROM mcr.microsoft.com/dotnet/sdk:6.0-bullseye-slim AS build-env
|
||||
WORKDIR /App
|
||||
|
||||
# Copy everything
|
||||
RUN apt update && apt install wget -y
|
||||
COPY * .
|
||||
|
||||
# Restore as distinct layers
|
||||
@@ -10,15 +11,21 @@ RUN dotnet restore
|
||||
# Build a release
|
||||
RUN dotnet build -c Release -o out
|
||||
|
||||
RUN cd out && \
|
||||
wget https://files.ivanch.me/api/public/dl/Dj0gkp-m/small-image.png && \
|
||||
wget https://files.ivanch.me/api/public/dl/FqHEPM1Q/big-image.png && \
|
||||
wget https://files.ivanch.me/api/public/dl/nTAYqZwD/video.mp4 && \
|
||||
rm -rf runtimes && \
|
||||
mkdir -p ./static && \
|
||||
mv small-image.png ./static && \
|
||||
mv big-image.png ./static && \
|
||||
mv video.mp4 ./static
|
||||
|
||||
# Build runtime image
|
||||
FROM mcr.microsoft.com/dotnet/aspnet:6.0-bullseye-slim
|
||||
|
||||
WORKDIR /App
|
||||
|
||||
RUN wget https://files.ivanch.me/api/public/dl/QFCLgtrG/simpleimage.png && \
|
||||
wget https://files.ivanch.me/api/public/dl/E0VLgWbx/bigimage.png && \
|
||||
rm -rf runtimes
|
||||
|
||||
COPY --from=build-env /App/out .
|
||||
|
||||
ENTRYPOINT ["dotnet", "/App/TCC.APP.dll"]
|
Reference in New Issue
Block a user