Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Ubuntu Unit Dockerfile for PHP and Laravel
FROM ubuntu:xenial
RUN set -xe \
&& apt-get -y update \
&& apt-get -y install --no-install-recommends curl php \
&& curl | apt-key add - \
&& echo "deb xenial nginx" | tee -a /etc/apt/sources.list \
&& echo "deb-src xenial nginx" | tee -a /etc/apt/sources.list \
&& apt-get -y update \
&& apt-get -y install unit \
&& unitd --version
WORKDIR /www/laravel
COPY ./src /www/laravel
RUN chown -R www-data:www-data /www/laravel
CMD ["unitd", "--no-daemon"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment