fixed build issues
This commit is contained in:
parent
50237f0714
commit
70c5c4c50f
|
@ -1,10 +1,13 @@
|
||||||
#See https://aka.ms/customizecontainer to learn how to customize your debug container and how Visual Studio uses this Dockerfile to build your images for faster debugging.
|
#See https://aka.ms/customizecontainer to learn how to customize your debug container and how Visual Studio uses this Dockerfile to build your images for faster debugging.
|
||||||
|
|
||||||
ARG BASE=8.0
|
ARG BASE=
|
||||||
FROM mcr.microsoft.com/dotnet/aspnet:$BASE AS base
|
FROM mcr.microsoft.com/dotnet/aspnet:8.0$BASE AS base
|
||||||
RUN mkdir -p /app/files && chown app /app/files
|
RUN mkdir -p /app/files && chown app /app/files
|
||||||
RUN mkdir -p /configuration && chown app /configuration
|
RUN if command -v apt-get; then \
|
||||||
RUN apt-get update && apt-get install -y curl
|
apt-get update && apt-get install -y curl; \
|
||||||
|
else \
|
||||||
|
apk add --update curl; \
|
||||||
|
fi
|
||||||
USER app
|
USER app
|
||||||
VOLUME /app/files
|
VOLUME /app/files
|
||||||
VOLUME /configuration
|
VOLUME /configuration
|
||||||
|
@ -24,9 +27,12 @@ COPY [ \
|
||||||
"Wave/*.config.ts", \
|
"Wave/*.config.ts", \
|
||||||
"./"]
|
"./"]
|
||||||
COPY ["Wave/Assets/", "./Assets/"]
|
COPY ["Wave/Assets/", "./Assets/"]
|
||||||
|
# need to copy website files, otherwise tailwind doesn't compile
|
||||||
|
# the required classes
|
||||||
|
COPY ["Wave/Components/", "./Components/"]
|
||||||
RUN npx vite build
|
RUN npx vite build
|
||||||
|
|
||||||
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
|
FROM mcr.microsoft.com/dotnet/sdk:8.0$BASE AS build
|
||||||
ARG BUILD_CONFIGURATION=Release
|
ARG BUILD_CONFIGURATION=Release
|
||||||
ARG VERSION=0.0.1
|
ARG VERSION=0.0.1
|
||||||
WORKDIR /src
|
WORKDIR /src
|
||||||
|
|
Loading…
Reference in a new issue