Skip to content

Commit

Permalink
Fix TMP permissions to avoid UPLOAD_ERR_NO_TMP_DIR.
Browse files Browse the repository at this point in the history
Related issues: danpoltawski/docker-moodle/#9.
  • Loading branch information
scara authored and danpoltawski committed Jul 6, 2017
1 parent 6c64dc6 commit 464153c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
FROM php:7.0-apache

ADD root/ /
# Fix the original permissions of /tmp, the PHP default upload tmp dir.
RUN chmod 777 /tmp && chmod +t /tmp
# Setup the required extensions.
RUN /tmp/setup/php-extensions.sh
RUN /tmp/setup/oci8-extension.sh

Expand Down

0 comments on commit 464153c

Please sign in to comment.