Dockerfile 960 Bytes
Newer Older
1 2 3
FROM php:8-fpm

ARG DEV_MODE
4

5 6 7 8 9 10 11
ENV DEPLOY_USER=aip
ENV DEPLOY_USER_HOME=/home/$DEPLOY_USER \
    WORKDIR=/var/www/html \
    SSHDIR=/root/Downloads/ssh \
    PROJECTDIR=/root/Downloads/project \
    GIT_DOMAIN=github.com

12 13
ENV DEV_MODE=${DEV_MODE}

14
RUN apt-get update && apt-get -y install gnupg wget \
15
  && curl -sL https://deb.nodesource.com/setup_14.x | bash - \
16
  && apt-get update && apt-get -y install git vim mlocate inetutils-ping \
Spencer Williams's avatar
Spencer Williams committed
17
	net-tools telnet	ca-certificates mariadb-client \
18
	zlib1g-dev unzip libzip-dev nodejs \
19
	&& update-ca-certificates \
20
	&& docker-php-ext-install mysqli pdo_mysql zip
21

22
COPY *.sh /usr/local/bin/
23

24 25 26
# Although copying ini/*.ini would be preferred, this will error if
# no .ini files are in the folder
COPY ini/* "$PHP_INI_DIR"/conf.d/
27

28 29
COPY ssh/id_* "$SSHDIR"/
COPY project/* "$PROJECTDIR"/
30

31
RUN chmod -R +x /usr/local/bin/*.sh && install-composer.sh && dev-mode.sh
32

33
WORKDIR "$WORKDIR"
34

35
VOLUME "$WORKDIR"
36 37

ENTRYPOINT start.sh