mirror of
https://github.com/appwrite/appwrite
synced 2026-05-24 01:18:37 +00:00
Merge pull request #59 from gy741/fix-dockerfile
Use COPY instead of ADD in Dockerfile
This commit is contained in:
commit
babf46aa1e
1 changed files with 11 additions and 11 deletions
22
Dockerfile
22
Dockerfile
|
|
@ -63,24 +63,24 @@ RUN \
|
|||
RUN echo "upload_max_filesize = 4M" > /etc/php/7.3/fpm/conf.d/appwrite.ini
|
||||
|
||||
# nginx conf (with ssl certificates)
|
||||
ADD ./docker/nginx.conf /etc/nginx/nginx.conf
|
||||
ADD ./docker/ssl/nginx.crt /etc/nginx/ssl/nginx.crt
|
||||
ADD ./docker/ssl/nginx.key /etc/nginx/ssl/nginx.key
|
||||
COPY ./docker/nginx.conf /etc/nginx/nginx.conf
|
||||
COPY ./docker/ssl/nginx.crt /etc/nginx/ssl/nginx.crt
|
||||
COPY ./docker/ssl/nginx.key /etc/nginx/ssl/nginx.key
|
||||
|
||||
# php conf
|
||||
RUN mkdir -p /var/run/php
|
||||
ADD ./docker/www.conf /etc/php/7.3/fpm/pool.d/www.conf
|
||||
COPY ./docker/www.conf /etc/php/7.3/fpm/pool.d/www.conf
|
||||
|
||||
# supervisord conf
|
||||
ADD ./docker/supervisord.conf /etc/supervisord.conf
|
||||
ADD ./docker/entrypoint.sh /entrypoint.sh
|
||||
COPY ./docker/supervisord.conf /etc/supervisord.conf
|
||||
COPY ./docker/entrypoint.sh /entrypoint.sh
|
||||
RUN chmod 775 /entrypoint.sh
|
||||
|
||||
# add PHP files
|
||||
ADD ./app /usr/share/nginx/html/app
|
||||
ADD ./public /usr/share/nginx/html/public
|
||||
ADD ./src /usr/share/nginx/html/src
|
||||
ADD ./vendor /usr/share/nginx/html/vendor
|
||||
COPY ./app /usr/share/nginx/html/app
|
||||
COPY ./public /usr/share/nginx/html/public
|
||||
COPY ./src /usr/share/nginx/html/src
|
||||
COPY ./vendor /usr/share/nginx/html/vendor
|
||||
|
||||
WORKDIR /storage/uploads
|
||||
RUN chown -Rf www-data.www-data /storage/uploads && chmod -Rf 0755 /storage/uploads
|
||||
|
|
@ -90,4 +90,4 @@ RUN chown -Rf www-data.www-data /storage/cache && chmod -Rf 0755 /storage/cache
|
|||
|
||||
EXPOSE 80
|
||||
|
||||
CMD ["/bin/bash", "/entrypoint.sh"]
|
||||
CMD ["/bin/bash", "/entrypoint.sh"]
|
||||
|
|
|
|||
Loading…
Reference in a new issue