Skip to content

Commit

Permalink
change vite/tailwind in dockerfile to make sure optimised container w…
Browse files Browse the repository at this point in the history
…orks
  • Loading branch information
martinbryant committed Dec 18, 2023
1 parent 8971b33 commit cda2d95
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions docs/recipes/build/docker-image.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,11 @@ COPY package.json package-lock.json ./
RUN npm install
COPY src/Shared src/Shared
COPY src/Client src/Client
RUN dotnet fable src/Client --run npx vite build
# tailwind.config.js needs to be in the dir where the
# vite build command is run from otherwise styles will
# be missing from the bundle
COPY src/Client/tailwind.config.js .
RUN dotnet fable src/Client --run npx vite build src/Client
FROM mcr.microsoft.com/dotnet/aspnet:8.0-alpine
COPY --from=server-build /workspace/deploy /app
Expand Down

0 comments on commit cda2d95

Please sign in to comment.