Skip to content

Commit

Permalink
Update Dockerfile.cli
Browse files Browse the repository at this point in the history
  • Loading branch information
Yshayy authored Sep 26, 2023
1 parent 9bcebef commit eeb66de
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile.cli
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ ARG CLI_TARGET=macos-arm64
WORKDIR /app/packages/cli
ENV PKG_CACHE_PATH=/pkg/cache
RUN --mount=type=cache,id=livecycle/preevy-cli/pkg-cache,target=/pkg/cache \
yarn pkg --compress GZip --no-dict --public --public-packages tslib --options max_old_space_size=4096 -t node18-${CLI_TARGET} .
yarn pkg --compress GZip --no-dict --public --public-packages tslib --options max_old_space_size=4096 -t node18-${CLI_TARGET} . --out-path /preevy/bin

FROM scratch as cli
ARG CLI_TARGET=macos-arm64
COPY --link --from=pkg /app/packages/cli/preevy /preevy
COPY --link --from=pkg /preevy/bin/* /
# use docker buildx build -f Dockerfile.cli --target=cli . --output=type=local,dest=./dist

FROM docker:24-cli as release
COPY --from=pkg /app/packages/cli/preevy /usr/bin/
COPY --from=pkg /preevy/bin/* /usr/bin/
CMD [ "preevy" ]

0 comments on commit eeb66de

Please sign in to comment.