summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorDaniel Weipert <code@drogueronin.de>2023-04-17 11:44:13 +0200
committerDaniel Weipert <code@drogueronin.de>2023-04-17 11:54:33 +0200
commit1be8276ed97cef78a60a07fce002fde38a4fc090 (patch)
tree242c7bd6a5bd2e2d2e83beead2172e9698315e38 /Dockerfile
parent90f8b6e9bdd80d02fc97c6febbc885c1fe1691df (diff)
Add Dockerfile and instructions for docker-compose
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile18
1 files changed, 18 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..2216c30
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,18 @@
+FROM composer AS composer
+
+COPY composer.* /app
+
+RUN composer install \
+ --optimize-autoloader \
+ --no-interaction \
+ --no-progress
+
+
+FROM php:fpm-alpine as php
+
+COPY --from=composer /app/vendor /app/vendor
+COPY public /app/public
+COPY src /app/src
+
+
+FROM php as default