-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathDockerfile.dev
19 lines (16 loc) · 900 Bytes
/
Dockerfile.dev
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM php:7.4
# https://github.com/composer/getcomposer.org/commits/main
ENV COMPOSER_COMMIT=30a8caf5d8e7c4069e243c378d01c7e3a3967bcc
RUN curl -s "https://raw.githubusercontent.com/composer/getcomposer.org/${COMPOSER_COMMIT}/web/installer" | php &&\
mv composer.phar /usr/local/bin/composer && chmod +x /usr/local/bin/composer
RUN apt-get update && apt-get install -y git unzip libzip-dev && docker-php-ext-install zip bcmath
ARG CLOUDCLI_USER_ID
ARG CLOUDCLI_GROUP_ID
RUN groupadd --gid $CLOUDCLI_GROUP_ID --system cloudwm &&\
useradd --home-dir /home/cloudwm --gid $CLOUDCLI_GROUP_ID --create-home --system --uid $CLOUDCLI_USER_ID cloudwm
USER cloudwm
WORKDIR /home/cloudwm
RUN composer global require laravel/installer
ENV PATH=/home/cloudwm/.composer/vendor/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
WORKDIR /home/cloudwm/cloudcli-server
ENV LOG_CHANNEL errorlog