Skip to content

Commit 6f790be

Browse files
committed
Try to restore libman in initContainers
1 parent e71bfd3 commit 6f790be

2 files changed

Lines changed: 1 addition & 4 deletions

File tree

.diploi/helm/app.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ spec:
3838
- name: install-dependencies
3939
image: {{ .Values.images.app }}
4040
imagePullPolicy: Always
41-
command: ['dotnet', 'build']
41+
command: ["/bin/sh", "-c", "dotnet build && dotnet tool restore && dotnet tool run libman restore"]
4242
workingDir: /app{{ .Values.folder }}
4343
volumeMounts:
4444
{{- if hasKey .Values.storage "code" }}

Dockerfile.dev

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ WORKDIR $FOLDER
88

99
USER 1000:1000
1010

11-
RUN dotnet tool restore \
12-
&& dotnet tool run libman restore
13-
1411
EXPOSE 5054
1512

1613
ENV ASPNETCORE_URLS=http://+:5054

0 commit comments

Comments
 (0)