Skip to content

Commit d50fc34

Browse files
committed
feat: add Composer public key downloads to Dockerfile for improved security
1 parent eda1d2b commit d50fc34

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docker/php/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ COPY php.ini /usr/local/etc/php/conf.d/satisfy.ini
1414
USER www-data
1515
RUN mkdir -p ~/.ssh && chmod 0700 ~/.ssh && ssh-keyscan -H github.com >> ~/.ssh/known_hosts && \
1616
mkdir -p ~/.composer && chown www-data:www-data ~/.composer && \
17+
wget -O ~/.composer/keys.dev.pub https://composer.github.io/snapshots.pub && \
18+
wget -O ~/.composer/keys.tags.pub https://composer.github.io/releases.pub && \
1719
git config --global --add safe.directory /var/www/html
1820

1921
USER root

0 commit comments

Comments
 (0)