-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
revert docker file entry point changes (temporary hotfix)
- Loading branch information
Showing
1 changed file
with
25 additions
and
13 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,27 @@ | ||
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS base | ||
|
||
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build | ||
ARG BUILD_CONFIGURATION=Release | ||
WORKDIR /src | ||
COPY "src/arc-to-invenio" . | ||
RUN dotnet restore "./arc-to-invenio.fsproj" | ||
RUN dotnet build "./arc-to-invenio.fsproj" -c $BUILD_CONFIGURATION -o /build | ||
|
||
FROM build AS publish | ||
ARG BUILD_CONFIGURATION=Release | ||
RUN dotnet publish "./arc-to-invenio.fsproj" -c $BUILD_CONFIGURATION -o /publish | ||
|
||
FROM base AS final | ||
COPY --from=publish /publish . | ||
## This should be the build steps used, but we need to hotfix existing enmtry point temporarily. | ||
#FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build | ||
#ARG BUILD_CONFIGURATION=Release | ||
#WORKDIR /src | ||
#COPY "src/arc-to-invenio" . | ||
#RUN dotnet restore "./arc-to-invenio.fsproj" | ||
#RUN dotnet build "./arc-to-invenio.fsproj" -c $BUILD_CONFIGURATION -o /build | ||
# | ||
#FROM build AS publish | ||
#ARG BUILD_CONFIGURATION=Release | ||
#RUN dotnet publish "./arc-to-invenio.fsproj" -c $BUILD_CONFIGURATION -o /publish | ||
# | ||
#FROM base AS final | ||
#COPY --from=publish /publish . | ||
|
||
ENV ARC_PATH=/arc | ||
|
||
COPY ./ /opt/arc-to-invenio | ||
WORKDIR /opt/arc-to-invenio | ||
RUN chmod +x build.sh | ||
RUN ./build.sh runtests | ||
|
||
ENV PATH="${PATH}:/opt/arc-to-invenio/src/arc-to-invenio/bin/Release/net8.0" | ||
|
||
WORKDIR /arc |