-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
37 lines (29 loc) · 811 Bytes
/
Dockerfile
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
27
28
29
30
31
32
33
34
35
36
37
# Install php
FROM php:8.2.4-fpm
# Install system dependencies
RUN apt-get update && \
apt-get install -y \
curl \
git \
unzip \
libpq-dev \
fish
# Install PostgreSQL PDO extension
RUN docker-php-ext-install pdo pdo_pgsql
# Install Composer
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
# Install NVM
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
# Sets NVM environment variables
ENV NVM_DIR="/root/.nvm"
ENV NODE_VERSION="19.9.0"
# Install Node.js, npm and Yarn
RUN . $NVM_DIR/nvm.sh && \
nvm install $NODE_VERSION && \
nvm alias default $NODE_VERSION && \
nvm use default && \
npm install -g yarn
# Sets the workdir
WORKDIR /app
# Copy the directory files
COPY . .