summaryrefslogtreecommitdiff
path: root/api/Dockerfile
blob: f7a8bd08d5a4e5fda5784ecc4fc3f810324a7ee7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
FROM php:7.4-cli
RUN apt-get update -y && apt-get install -y openssl zip unzip git libpq-dev
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
RUN docker-php-ext-configure pgsql -with-pgsql=/usr/local/pgsql
RUN docker-php-ext-install pdo pdo_pgsql

WORKDIR /app
COPY . /app
RUN rm /app/.env
RUN composer install

CMD cd /app && php -S 0.0.0.0:8000 -t public
EXPOSE 8000