-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DMS-380] Fix the failing docker image creation on on-prerelease proc…
…ess (#365)
- Loading branch information
Showing
2 changed files
with
31 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# Licensed to the Ed-Fi Alliance under one or more agreements. | ||
# The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0. | ||
# See the LICENSE and NOTICES files in the project root for more information. | ||
|
||
FROM mcr.microsoft.com/dotnet/aspnet:8.0.8-alpine3.20-amd64@sha256:98fa594b91cda6cac28d2aae25567730db6f8857367fab7646bdda91bc784b5f AS runtimebase | ||
|
||
LABEL maintainer="Ed-Fi Alliance, LLC and Contributors <[email protected]>" | ||
|
||
RUN apk --no-cache add gettext=~0 postgresql16-client=~16 | ||
|
||
FROM runtimebase AS setup | ||
|
||
ARG VERSION=0.0.0 | ||
ENV ASPNETCORE_HTTP_PORTS=8080 | ||
|
||
WORKDIR /app | ||
|
||
RUN echo "Tag Version:" $VERSION | ||
|
||
RUN wget -O /app/EdFi.DmsConfigurationService.zip "https://pkgs.dev.azure.com/ed-fi-alliance/Ed-Fi-Alliance-OSS/_apis/packaging/feeds/EdFi/nuget/packages/EdFi.DmsConfigurationService/versions/${VERSION}/content" && \ | ||
unzip /app/EdFi.DmsConfigurationService.zip -d /app/ && \ | ||
rm -f /app/EdFi.DmsConfigurationService.zip | ||
COPY --chmod=600 appsettings.template.json /app/appsettings.template.json | ||
|
||
COPY --chmod=700 run.sh /app/run.sh | ||
EXPOSE ${ASPNETCORE_HTTP_PORTS} | ||
ENTRYPOINT ["/bin/ash","/app/run.sh"] |