Skip to content

[container] php base images #1695

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
prabhu opened this issue Mar 23, 2025 · 1 comment
Open

[container] php base images #1695

prabhu opened this issue Mar 23, 2025 · 1 comment
Labels
good first issue Good for newcomers

Comments

@prabhu
Copy link
Collaborator

prabhu commented Mar 23, 2025

Let's add a range of php images based on debian.

@prabhu prabhu added the good first issue Good for newcomers label Mar 23, 2025
@prabhu
Copy link
Collaborator Author

prabhu commented Mar 23, 2025

Use the below dockerfile. Update the FROM statement for php 8 debian say php:8-zts. Remove ruby related lines such as && gem install bundler cocoapods \ and BUNDLE_SILENCE_ROOT_WARNING=true \

FROM ruby:3.4

ARG JAVA_VERSION=23.0.2-tem
ARG NODE_VERSION=23.9.0

ENV JAVA_VERSION=$JAVA_VERSION \
    JAVA_HOME="/opt/java/${JAVA_VERSION}" \
    BUNDLE_SILENCE_ROOT_WARNING=true \
    JAVA_TOOL_OPTIONS="-Dfile.encoding=UTF-8" \
    NVM_DIR="/root/.nvm"
ENV PATH=${PATH}:/root/.nvm/versions/node/v${NODE_VERSION}/bin:/usr/local/bin:/root/.local/bin:/root/.rbenv/bin:

COPY ci/base-images/debian/install.sh /tmp/

RUN apt-get update && apt-get install -qq -y --no-install-recommends curl bash bzip2 git-core zip unzip make gawk \
    && apt-get install -qq -y build-essential python3 python3-pip python3-dev libmagic-dev locales \
    && chmod +x /tmp/install.sh \
    && ./tmp/install.sh && rm /tmp/install.sh \
    && node -v \
    && npm -v \
    && gem install bundler cocoapods \
    && apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false \
    && rm -rf /var/lib/apt/lists/*

CMD ["/bin/bash"]

Can you suggest a modified dockerfile so that new contributors could test and send a pull request. They also need to add a new dockerfile here and update the workflow with two entries.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant