Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sheurich committed Feb 28, 2024
1 parent 098160e commit 4b54e2c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile.release
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ FROM --platform=${TARGETPLATFORM} mcr.microsoft.com/windows/nanoserver:ltsc2022
# Use build arguments to select the appropriate binary for Linux
FROM linux-base AS linux
ARG APP
COPY --from=dist-files /${APP} /app
COPY --from=dist-files ./${APP} /app
CMD /app

# Use build arguments to select the appropriate binary for Windows
FROM windows-base AS windows
ARG APP
COPY --from=dist-files /${APP}.exe /app.exe
COPY --from=dist-files ./${APP}.exe /app.exe
CMD /app.exe

# Final stage: dynamically select between Linux and Windows stages based on TARGETOS argument
Expand Down

0 comments on commit 4b54e2c

Please sign in to comment.