-
Notifications
You must be signed in to change notification settings - Fork 372
Add Dockerfile for development #945
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
ARG PHP_VERSION=8.3 \ | ||
COMPOSER_VERSION=latest | ||
|
||
# At the moment, it's NOT possible to interpolate inside the COPY --from | ||
FROM composer:${COMPOSER_VERSION} AS composer | ||
FROM php:${PHP_VERSION} | ||
COPY --from=composer /usr/bin/composer /usr/bin/composer | ||
|
||
# https://getcomposer.org/doc/articles/troubleshooting.md#root-package-version-detection | ||
ENV COMPOSER_ROOT_VERSION=2.0.x-dev | ||
|
||
ARG USERNAME=faker \ | ||
pimjansen marked this conversation as resolved.
Show resolved
Hide resolved
|
||
USER_UID=1000 \ | ||
USER_GID=$USER_UID | ||
bram-pkg marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
RUN groupadd --gid $USER_GID $USERNAME \ | ||
&& useradd --uid $USER_UID --gid $USER_GID -m $USERNAME | ||
|
||
RUN apt-get update && apt-get install -y \ | ||
gzip \ | ||
Head0nF1re marked this conversation as resolved.
Show resolved
Hide resolved
|
||
unzip | ||
|
||
ADD --chmod=0755 https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could we use the same mechanic here as with composer: copying the script from the docker image There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, it would be fine. We just need to add some info in the README warning about potentially stale images and the need to use There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Removed the |
||
|
||
RUN install-php-extensions intl | ||
|
||
USER $USERNAME |
Uh oh!
There was an error while loading. Please reload this page.