Skip to content

Commit e42ffff

Browse files
committed
install npm deps in Dockerfile
1 parent 88528ee commit e42ffff

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ RUN dotnet build "MyApp.csproj" -c Release -o /app/build
3030

3131
FROM build AS publish
3232
RUN dotnet publish "MyApp.csproj" -c Release -o /app/publish /p:UseAppHost=false /p:PublishProfile=""
33+
# Install npm packages
34+
RUN cd /app/publish && bun install
3335

3436
FROM base AS final
3537
WORKDIR /app

MyApp/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"scripts": {
3-
"postinstall": "node postinstall.js && npm run migrate",
43
"dtos": "x mjs",
54
"dev": "dotnet watch",
65
"ui:dev": "tailwindcss -i ./tailwind.input.css -o ./wwwroot/css/app.css --watch",

0 commit comments

Comments
 (0)