Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 8 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,23 +1,22 @@
ARG DOTNET_VERSION=10.0

FROM mcr.microsoft.com/dotnet/sdk:${DOTNET_VERSION}-alpine AS build
FROM mcr.microsoft.com/dotnet/sdk:${DOTNET_VERSION} AS build
RUN apt-get update && apt-get install -y python3 curl && rm -rf /var/lib/apt/lists/*
RUN dotnet workload install wasm-tools
WORKDIR /src

# tailwind install
RUN set -ex; \
apkArch="$(apk --print-arch)"; \
case "$apkArch" in \
aarch64) arch='linux-arm64' ;; \
x86_64) arch='linux-x64' ;; \
arch="$(dpkg --print-architecture)"; \
case "$arch" in \
arm64) arch='linux-arm64' ;; \
amd64) arch='linux-x64' ;; \
esac; \
echo Downloading tailwindcss for $apkArch ; \
echo Downloading tailwindcss for $arch ; \
curl -sL -o tailwindcss https://github.com/tailwindlabs/tailwindcss/releases/download/v3.4.17/tailwindcss-$arch; \
chmod +x tailwindcss; \
ls -al tailwindcss ;

RUN apk add python3

# restore
COPY *.sln .
COPY PointingParty/PointingParty.csproj PointingParty/PointingParty.csproj
Expand All @@ -37,7 +36,7 @@ RUN set -ex; \
RUN dotnet publish --no-restore -c Release -o /app PointingParty

# final stage/image
FROM mcr.microsoft.com/dotnet/aspnet:${DOTNET_VERSION}-alpine
FROM mcr.microsoft.com/dotnet/aspnet:${DOTNET_VERSION}
ENV ASPNETCORE_URLS=http://+:8080
ENV ASPNETCORE_ENVIRONMENT=Production
EXPOSE 8080
Expand Down
2 changes: 1 addition & 1 deletion PointingParty/Components/App.razor
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

<body class="dark:bg-neutral-900">
<Routes/>
<script src="_framework/blazor.web.js"></script>
<script src="@Assets["_framework/blazor.web.js"]"></script>
</body>

</html>
Loading