Skip to content

Commit

Permalink
feat: Add ubi, the universal binary installer, to cli template (#346)
Browse files Browse the repository at this point in the history
  • Loading branch information
janbuchar authored Mar 8, 2025
1 parent 3b04226 commit e0be603
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions templates/cli-start/.actor/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
FROM apify/actor-node:22

# Install system dependencies
RUN apk add --no-cache jq wget bash
RUN apk add --no-cache jq wget bash curl && \
curl --silent --location \
https://raw.githubusercontent.com/houseabsolute/ubi/master/bootstrap/bootstrap-ubi.sh | sh

# Install the Apify CLI
RUN npm --quiet set progress=false \
Expand All @@ -17,7 +19,11 @@ RUN npm --quiet set progress=false \
&& npm --version \
&& npm cache clean --force

# TODO Install any other dependencies here
# TODO Install any other dependencies here - you may use `ubi` for that (see https://github.com/houseabsolute/ubi):
# RUN ubi \
# --verbose \
# --project https://github.com/someuser/repository \
# --in /usr/local/bin

# Copy main.sh script and any other files
COPY . ./
Expand Down

0 comments on commit e0be603

Please sign in to comment.