Skip to content

Commit

Permalink
fixed build issues
Browse files Browse the repository at this point in the history
  • Loading branch information
miawinter98 committed Jun 18, 2024
1 parent 50237f0 commit 70c5c4c
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions Wave/Dockerfile
Original file line number Diff line number Diff line change
@@ -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.

ARG BASE=8.0
FROM mcr.microsoft.com/dotnet/aspnet:$BASE AS base
ARG BASE=
FROM mcr.microsoft.com/dotnet/aspnet:8.0$BASE AS base
RUN mkdir -p /app/files && chown app /app/files
RUN mkdir -p /configuration && chown app /configuration
RUN apt-get update && apt-get install -y curl
RUN if command -v apt-get; then \
apt-get update && apt-get install -y curl; \
else \
apk add --update curl; \
fi
USER app
VOLUME /app/files
VOLUME /configuration
Expand All @@ -24,9 +27,12 @@ COPY [ \
"Wave/*.config.ts", \
"./"]
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

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 VERSION=0.0.1
WORKDIR /src
Expand Down

0 comments on commit 70c5c4c

Please sign in to comment.