Created
January 18, 2022 19:43
-
-
Save sadiefp/08769f654fc8948a024558a51864a709 to your computer and use it in GitHub Desktop.
Install Terminus in Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is what we added to Node Docker image to install Terminus | |
# Install everything we need from php | |
RUN apk add curl | |
RUN apk add php | |
RUN apk add php-cli | |
RUN apk add php-json | |
RUN apk add php-phar | |
RUN apk add php-iconv | |
RUN apk add php-mbstring | |
RUN apk add php-openssl | |
RUN apk add php-tokenizer | |
RUN apk add php-xml | |
RUN apk add php-dom | |
# Get composer | |
COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer | |
# Install Terminus | |
# Switch to root user | |
USER root | |
RUN mkdir -p /usr/local/share/terminus | |
RUN /usr/bin/env COMPOSER_BIN_DIR=/usr/local/bin composer -n --working-dir=/usr/local/share/terminus require pantheon-systems/terminus:"^2.4" | |
USER node | |
# Login to Terminus | |
RUN terminus auth:login --machine-token=${TERMINUS_TOKEN} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment