Skip to content

Commit

Permalink
Fix docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
jlantz committed Oct 31, 2023
1 parent 552bdc7 commit 4aa3651
Showing 1 changed file with 8 additions and 18 deletions.
26 changes: 8 additions & 18 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,26 +1,16 @@
FROM python:3.11-slim-bookworm
FROM salesforce/cli:latest-full

LABEL org.opencontainers.image.source = "https://github.com/muselab-d2x/d2x"

# Install sfdx
RUN apt-get update
RUN apt-get upgrade -y
RUN apt-get install -y gnupg wget curl git
RUN \
echo "deb https://deb.nodesource.com/node_20.x bullseye main" > /etc/apt/sources.list.d/nodesource.list && \
wget -qO- https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - && \
apt-get update
RUN apt-get install -y nodejs
RUN npm install --global npm jq commander
RUN npm install --global sfdx-cli --ignore-scripts

# Install Salesforce CLI plugins:
RUN sfdx plugins:install @salesforce/sfdx-scanner
# Install Python
RUN apt-get update; \
apt-get upgrade -y; \
apt-get install -y python3-pip

# Install GitHub CLI
RUN curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | gpg --dearmor -o /usr/share/keyrings/githubcli-archive-keyring.gpg;
RUN echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | tee /etc/apt/sources.list.d/github-cli.list > /dev/null;
RUN apt-get install -y gh
RUN curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | gpg --dearmor -o /usr/share/keyrings/githubcli-archive-keyring.gpg; \
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | tee /etc/apt/sources.list.d/github-cli.list > /dev/null; \
apt-get install -y gh

# Install CumulusCI
RUN pip install --no-cache-dir --upgrade pip pip-tools \
Expand Down

0 comments on commit 4aa3651

Please sign in to comment.