mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Merge pull request #1 from itaymelamed/MultiStageBuild
Update Dockerfile
This commit is contained in:
+5
-2
@@ -1,5 +1,8 @@
|
||||
FROM ubuntu:18.04
|
||||
FROM php as builder
|
||||
WORKDIR /builder
|
||||
RUN composer update --ignore-platform-reqs --optimize-autoloader --no-plugins --no-scripts
|
||||
|
||||
FROM ubuntu:18.04
|
||||
LABEL maintainer="team@appwrite.io"
|
||||
|
||||
ENV TZ=Asia/Tel_Aviv
|
||||
@@ -81,7 +84,7 @@ COPY ./app /usr/share/nginx/html/app
|
||||
COPY ./docs /usr/share/nginx/html/docs
|
||||
COPY ./public /usr/share/nginx/html/public
|
||||
COPY ./src /usr/share/nginx/html/src
|
||||
COPY ./vendor /usr/share/nginx/html/vendor
|
||||
COPY --from=builder /builder/vendor /usr/share/nginx/html/vendor
|
||||
|
||||
WORKDIR /storage/uploads
|
||||
RUN chown -Rf www-data.www-data /storage/uploads && chmod -Rf 0755 /storage/uploads
|
||||
|
||||
Reference in New Issue
Block a user