-
-
Notifications
You must be signed in to change notification settings - Fork 863
/
Dockerfile
20 lines (13 loc) · 639 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM jsdecena/php74-fpm
ENV NODE_VERSION=12.6.0
RUN apt update && apt install -y curl
RUN docker-php-ext-install mysqli pdo_mysql gd
COPY project ./
COPY project/.env.example ./.env
RUN curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash
ENV NVM_DIR=/root/.nvm
RUN . "$NVM_DIR/nvm.sh" && nvm install ${NODE_VERSION}
RUN . "$NVM_DIR/nvm.sh" && nvm use v${NODE_VERSION}
RUN . "$NVM_DIR/nvm.sh" && nvm alias default v${NODE_VERSION}
ENV PATH="/root/.nvm/versions/node/v${NODE_VERSION}/bin/:${PATH}"
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer