Skip to content

Commit a7385ff

Browse files
committed
Fix TMP permissions to avoid UPLOAD_ERR_NO_TMP_DIR.
Related issues: danpoltawski/docker-moodle/#9.
1 parent 6efd643 commit a7385ff

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Dockerfile

+3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
FROM php:7.1-apache
22

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

0 commit comments

Comments
 (0)