Last active
May 31, 2021 13:52
-
-
Save lukaszlach/c681e02e828ea0da5a5a5e6ab1fb93d5 to your computer and use it in GitHub Desktop.
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
ARG UBUNTU_VERSION=20.04 | |
FROM ubuntu:${UBUNTU_VERSION} AS ubuntu-desktop | |
ARG DESKTOP=xfce4 | |
RUN export DEBIAN_FRONTEND=noninteractive && \ | |
apt-get update && \ | |
apt-get install -y ${DESKTOP} firefox && \ | |
rm -rf /var/lib/apt/lists/* | |
FROM ubuntu-desktop | |
CMD ["bash", "/opt/phpstorm/bin/phpstorm.sh"] | |
ARG PHP_VERSION=7.4 | |
RUN export DEBIAN_FRONTEND=noninteractive && \ | |
apt-get update && \ | |
apt-get install -y software-properties-common wget git curl && \ | |
apt-get install -y phpunit php${PHP_VERSION} php${PHP_VERSION}-cgi && \ | |
rm -rf /var/lib/apt/lists/* && \ | |
rm -rf /tmp/* && \ | |
useradd -m -s /bin/bash developer && \ | |
chown -R developer:developer /home/developer | |
ARG PHPSTORM_VERSION=2021.1.2 | |
RUN mkdir /opt/phpstorm && \ | |
wget -O - https://download.jetbrains.com/webide/PhpStorm-${PHPSTORM_VERSION}.tar.gz | \ | |
tar xzf - --strip-components=1 -C "/opt/phpstorm" | |
VOLUME /home | |
USER developer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment