-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (20 loc) · 797 Bytes
/
Dockerfile
File metadata and controls
26 lines (20 loc) · 797 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
FROM webdevops/php-dev:8.4
COPY --from=composer:2 /usr/bin/composer /usr/local/bin/composer
COPY --from=phario/phive:0.15.2 /usr/local/bin/phive /usr/local/bin/phive
RUN mkdir "/home/$APPLICATION_USER/.phive"
# configure services
RUN set -x \
&& apt-get -q update \
&& docker-service enable syslog \
&& docker-run-bootstrap \
&& docker-image-cleanup
WORKDIR /app
ADD "https://www.random.org/cgi-bin/randbyte?nbytes=10&format=h" skipcache
ARG UID
ARG GID
# Fix application uid/gid by given arguments
RUN echo "Change uid/gid of 'application' user (${UID}:${GID})" && \
usermod -u ${UID} application && \
groupmod -g ${GID} application && \
usermod -g ${GID} application && \
chown "$APPLICATION_USER":"$APPLICATION_GROUP" -R /app "/home/$APPLICATION_USER"