fix layer of entrypoint
This commit is contained in:
@@ -47,6 +47,9 @@ FROM base AS prod
|
||||
COPY . /app
|
||||
RUN chown -R www-data:www-data /app
|
||||
|
||||
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
|
||||
RUN chmod +x /usr/local/bin/entrypoint.sh
|
||||
|
||||
USER www-data
|
||||
WORKDIR /app
|
||||
|
||||
@@ -54,8 +57,6 @@ RUN composer install --prefer-dist --no-scripts --no-dev --optimize-autoloader
|
||||
|
||||
EXPOSE 9000
|
||||
|
||||
COPY --chmod=+x entrypoint.sh /usr/local/bin/entrypoint.sh
|
||||
|
||||
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
|
||||
|
||||
CMD ["php-fpm"]
|
||||
|
||||
Reference in New Issue
Block a user