Skip to content

Commit

Permalink
This should fix docker file
Browse files Browse the repository at this point in the history
  • Loading branch information
devedse committed Mar 8, 2024
1 parent 6edcd57 commit 4673591
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions DeveMultiCompressor.ConsoleApp/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@ COPY ["DeveMultiCompressor.ConsoleApp/DeveMultiCompressor.ConsoleApp.csproj", "D
COPY ["DeveMultiCompressor/DeveMultiCompressor.csproj", "DeveMultiCompressor/"]
RUN dotnet restore "DeveMultiCompressor.ConsoleApp/DeveMultiCompressor.ConsoleApp.csproj"
COPY . .
WORKDIR "/src/DeveMultiCompressor.ConsoleApp"

# Make executable files without extension executable
WORKDIR "/src/Compressors"
RUN echo "Making executable files without extension executable..." && \
find . -type f ! -name "*.*" -exec sh -c '\
for f; do \
Expand All @@ -26,7 +25,7 @@ RUN echo "Making executable files without extension executable..." && \
fi; \
done \
' sh {} +

WORKDIR "/src/DeveMultiCompressor.ConsoleApp"
RUN dotnet build "DeveMultiCompressor.ConsoleApp.csproj" -c Release -o /app/build

FROM build AS publish
Expand Down

0 comments on commit 4673591

Please sign in to comment.