2024-07-27 21:36:23 +00:00
|
|
|
FROM fedora:40
|
2024-07-27 21:46:32 +00:00
|
|
|
ARG JETBRAINS_DEPENDENCIES
|
2024-07-27 18:21:30 +00:00
|
|
|
|
2024-07-27 21:36:23 +00:00
|
|
|
# Set environment variables
|
|
|
|
ENV BOX_NAME="phpstorm"
|
2024-07-27 18:21:30 +00:00
|
|
|
|
2024-07-27 21:36:23 +00:00
|
|
|
# Install required packages and setup sources
|
|
|
|
RUN curl -1sLf 'https://dl.cloudsmith.io/public/symfony/stable/setup.rpm.sh' | bash \
|
|
|
|
&& dnf install -y \
|
2024-07-27 21:46:32 +00:00
|
|
|
$JETBRAINS_DEPENDENCIES \
|
2024-07-27 21:36:23 +00:00
|
|
|
php \
|
2024-07-27 22:00:57 +00:00
|
|
|
screen \
|
2024-07-28 15:25:17 +00:00
|
|
|
highlight \
|
2024-07-27 21:36:23 +00:00
|
|
|
composer \
|
|
|
|
php-pdo \
|
|
|
|
php-mysqlnd \
|
|
|
|
symfony-cli \
|
2024-07-27 18:21:30 +00:00
|
|
|
&& dnf clean all
|
|
|
|
|
2024-07-27 21:36:23 +00:00
|
|
|
# Link outside tooling
|
2024-07-27 22:00:57 +00:00
|
|
|
RUN alias docker="podman"
|
2024-07-27 21:36:23 +00:00
|
|
|
RUN ln -s /usr/bin/distrobox-host-exec /usr/local/bin/podman
|
|
|
|
|
|
|
|
# Command to run on container start
|
|
|
|
CMD ["distrobox-enter", "--name", "$BOX_NAME"]
|