Skip to content

Instantly share code, notes, and snippets.

@lukaszlach
Last active May 31, 2021 13:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lukaszlach/c681e02e828ea0da5a5a5e6ab1fb93d5 to your computer and use it in GitHub Desktop.
Save lukaszlach/c681e02e828ea0da5a5a5e6ab1fb93d5 to your computer and use it in GitHub Desktop.
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