docker compose exemplified, .env integration
This commit is contained in:
1 parent
b1284f6fa9
commit
42ef989fb7
6 files changed
+22
-5
No files matched your search
+1
-1
@@ -28,7 +28,7 @@ COPY . /var/www/html/
|
||||
RUN composer install --no-dev --optimize-autoloader --no-interaction --prefer-dist \
|
||||
&& mkdir -p logs \
|
||||
&& chmod 755 logs \
|
||||
&& cp -n .env.example .env \
|
||||
&& if [ ! -f .env ]; then cp .env.example .env; fi \
|
||||
&& chown -R www-data:www-data /var/www/html
|
||||
|
||||
EXPOSE 8080
|
||||
|
||||
Reference in new issue
Block a user