Merge pull request #1 from itaymelamed/MultiStageBuild
Update Dockerfile
This commit is contained in:
commit
812e9e3264
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue