summaryrefslogtreecommitdiff
path: root/api/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'api/Dockerfile')
-rw-r--r--api/Dockerfile13
1 files changed, 13 insertions, 0 deletions
diff --git a/api/Dockerfile b/api/Dockerfile
new file mode 100644
index 0000000..f7a8bd0
--- /dev/null
+++ b/api/Dockerfile
@@ -0,0 +1,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