Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
uchi-ta committed Oct 16, 2023
2 parents 42b3a87 + 1664cbe commit 9b5d8ec
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Implem.Pleasanter/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging.

FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS base
RUN apt-get update && apt-get install -y libgdiplus curl
RUN apt-get update && apt-get install -y libgdiplus

WORKDIR /app
EXPOSE 80
Expand All @@ -24,9 +24,9 @@ WORKDIR "/src/Implem.Pleasanter"
RUN dotnet build "Implem.Pleasanter.csproj" -c Release -o /app/build

FROM build AS publish
RUN apt-get update && apt-get install -y jq
RUN dotnet publish "Implem.Pleasanter.csproj" -c Release -o /app/publish
RUN curl -o /usr/bin/jq -L https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64 && chmod +x /usr/bin/jq && \
cat App_Data/Parameters/Rds.json \
RUN cat App_Data/Parameters/Rds.json \
| jq '.Dbms|="PostgreSQL" | .SaConnectionString|=null | .OwnerConnectionString|=null | .UserConnectionString|=null' \
> /app/publish/App_Data/Parameters/Rds.json

Expand Down

0 comments on commit 9b5d8ec

Please sign in to comment.