fixed alpine image not starting

This commit is contained in:
Mia Rose Winter 2024-06-18 13:00:34 +02:00
parent c0195464c0
commit 69a5d51214
Signed by: miawinter
GPG key ID: 4B6F6A83178F595E
2 changed files with 7 additions and 3 deletions

View file

@ -2,11 +2,12 @@
ARG BASE= ARG BASE=
FROM mcr.microsoft.com/dotnet/aspnet:8.0$BASE AS base FROM mcr.microsoft.com/dotnet/aspnet:8.0$BASE AS base
ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false
RUN mkdir -p /app/files && chown app /app/files RUN mkdir -p /app/files && chown app /app/files
RUN if command -v apt-get; then \ RUN if command -v apt-get; then \
apt-get update && apt-get install -y curl; \ apt-get update && apt-get install -y curl; \
else \ else \
apk add --update curl; \ apk add --update curl icu-libs icu-data-full tzdata; \
fi fi
USER app USER app
VOLUME /app/files VOLUME /app/files
@ -24,7 +25,8 @@ RUN npm install
COPY [ \ COPY [ \
"Wave/tsconfig.json", \ "Wave/tsconfig.json", \
"Wave/tsconfig.node.json", \ "Wave/tsconfig.node.json", \
"Wave/*.config.ts", \ "Wave/tailwind.config.ts", \
"Wave/vite.config.ts", \
"./"] "./"]
COPY ["Wave/Assets/", "./Assets/"] COPY ["Wave/Assets/", "./Assets/"]
# need to copy website files, otherwise tailwind doesn't compile # need to copy website files, otherwise tailwind doesn't compile
@ -33,6 +35,7 @@ COPY ["Wave/Components/", "./Components/"]
RUN npx vite build RUN npx vite build
FROM mcr.microsoft.com/dotnet/sdk:8.0$BASE AS build FROM mcr.microsoft.com/dotnet/sdk:8.0$BASE AS build
ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false
ARG BUILD_CONFIGURATION=Release ARG BUILD_CONFIGURATION=Release
ARG VERSION=0.0.1 ARG VERSION=0.0.1
WORKDIR /src WORKDIR /src
@ -46,6 +49,7 @@ RUN dotnet build "./Wave.csproj" \
-p:Version="${VERSION}" -p:Version="${VERSION}"
FROM build AS publish FROM build AS publish
ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false
ARG BUILD_CONFIGURATION=Release ARG BUILD_CONFIGURATION=Release
ARG VERSION=0.0.1 ARG VERSION=0.0.1
ARG VERSION_SUFFIX= ARG VERSION_SUFFIX=

View file

@ -2,7 +2,7 @@ const defaultTheme = require('tailwindcss/defaultTheme');
/** @type {import('tailwindcss').Config} */ /** @type {import('tailwindcss').Config} */
export default { export default {
content: ["Assets/**/*.{ts,tsx}", "Pages/**/*.cshtml", "Components/**/*.razor"], content: ["Assets/**/*.{ts,tsx}", "Components/**/*.razor"],
safelist: ["youtube"], safelist: ["youtube"],
theme: { theme: {
extend: { extend: {