Skip to content

Commit 7037970

Browse files
committed
Refactor Dockerfile to install Sqllite and update ABP CLI
1 parent 316bdf6 commit 7037970

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

InertiaDemo/InertiaDemo/Dockerfile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,18 @@ RUN apt-get update && \
2525
# Install Node.js LTS version
2626
RUN curl -fsSL https://deb.nodesource.com/setup_lts.x | bash - && \
2727
apt-get install -y nodejs
28+
29+
# Install Sqllite
30+
RUN apt-get install -y sqlite3 libsqlite3-dev
31+
RUN dotnet tool install -g Volo.Abp.Cli
32+
ENV PATH="${PATH}:/root/.dotnet/tools"
33+
RUN abp install-libs
2834
RUN dotnet build "./InertiaDemo.csproj" -c $BUILD_CONFIGURATION -o /app/build
2935

3036
# This stage is used to publish the service project to be copied to the final stage
3137
FROM build AS publish
3238
ARG BUILD_CONFIGURATION=Release
33-
RUN dotnet publish "./InertiaDemo.csproj" -c $BUILD_CONFIGURATION -r $RUNTIME_IDENTIFIER -o /app/publish --self-contained
39+
RUN dotnet publish "./InertiaDemo.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false
3440

3541
# This stage is used in production or when running from VS in regular mode (Default when not using the Debug configuration)
3642
FROM base AS final

InertiaDemo/InertiaDemo/InertiaDemo.csproj

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010
<SpaRoot>ClientApp\</SpaRoot>
1111
<DefaultItemExcludes>$(DefaultItemExcludes);$(SpaRoot)node_modules\**</DefaultItemExcludes>
1212
<UserSecretsId>7010f51f-fc6b-44ff-8be5-f7f78f3a7939</UserSecretsId>
13-
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
14-
<DockerfileContext>..\..</DockerfileContext>
1513
</PropertyGroup>
1614

1715
<ItemGroup>

0 commit comments

Comments
 (0)