mirror of
https://github.com/jikan-me/jikan-rest.git
synced 2025-02-20 11:23:35 +08:00
reduced container image size 4gb -> 1gb
This commit is contained in:
parent
a8f56d6d70
commit
21958f15b6
@ -61,8 +61,7 @@ RUN composer install -n --no-dev --no-cache --no-ansi --no-autoloader --no-scrip
|
|||||||
COPY --chown=jikanapi:jikanapi . /app/
|
COPY --chown=jikanapi:jikanapi . /app/
|
||||||
|
|
||||||
RUN set -ex \
|
RUN set -ex \
|
||||||
&& composer update jikan-me/jikan \
|
&& composer dump-autoload -n --optimize --no-ansi --no-dev \
|
||||||
&& composer dump-autoload -n --optimize \
|
|
||||||
&& chmod -R 777 ${COMPOSER_HOME}/cache \
|
&& chmod -R 777 ${COMPOSER_HOME}/cache \
|
||||||
&& chmod -R a+w storage/ \
|
&& chmod -R a+w storage/ \
|
||||||
&& chown -R jikanapi:jikanapi /app \
|
&& chown -R jikanapi:jikanapi /app \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user