Skip to content

Commit

Permalink
revert docker file entry point changes (temporary hotfix)
Browse files Browse the repository at this point in the history
  • Loading branch information
kMutagene committed Jan 28, 2025
1 parent 147877e commit 0f4fba8
Showing 1 changed file with 25 additions and 13 deletions.
38 changes: 25 additions & 13 deletions Dockerfile
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

0 comments on commit 0f4fba8

Please sign in to comment.