Skip to content

Commit

Permalink
remove unnecessary packages from final image. add ca-certificates to …
Browse files Browse the repository at this point in the history
…final image
  • Loading branch information
Thanhphan1147 committed Oct 19, 2023
1 parent 8f4bd82 commit d305020
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions wordpress_rock/rockcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,6 @@ parts:
- unzip
overlay-packages:
- apache2
- bzr
- curl
- git
- libapache2-mod-php
- libgmp-dev
- php
Expand All @@ -49,7 +46,7 @@ parts:
- pwgen
- python3
- python3-yaml
- unzip
- ca-certificates
build-environment:
# Required to source $CRAFT_OVERLAY/etc/apache2/envvars
- APACHE_CONFDIR: /etc/apache2
Expand Down Expand Up @@ -131,6 +128,11 @@ parts:
- PHP_VERSION: 7.4
- IMAGE_RUN_USER_ID: 584792
- IMAGE_RUN_GROUP_ID: 584792
build-packages: |
- bzr
- curl
- git
- unzip
override-build: |
curl -sSL --create-dirs https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar -o wp
chmod +x wp
Expand Down

0 comments on commit d305020

Please sign in to comment.