Skip to content

Running PHP and Composer in OpenVSCode #488

Answered by Verhoeckx
Verhoeckx asked this question in Q&A
Discussion options

You must be logged in to vote

To answer my own question, below is how you can install PHP inside the OpenVSCode container.


FROM gitpod/openvscode-server:latest

USER root

RUN apt-get -y update
RUN apt-get -y install --no-install-recommends --no-install-suggests php8.1
RUN rm -rf /var/lib/apt/lists/*

USER openvscode-server

ENTRYPOINT [ "/bin/sh", "-c", "exec ${OPENVSCODE_SERVER_ROOT}/bin/openvscode-server --host 0.0.0.0 --connection-token [password] \"${@}\"", "--" ]

Replace [password] with your password.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Verhoeckx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant