Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove python from docker image #177

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM php:8.2-fpm-alpine

RUN apk --no-cache add nginx supervisor curl subversion mercurial \
RUN apk --no-cache add nginx curl subversion \
git bash openssh-client zip unzip redis shadow && \
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer && \
printf "Host *\n StrictHostKeyChecking no" > /etc/ssh/ssh_config
Expand Down Expand Up @@ -37,6 +37,8 @@ RUN set -eux; \
\
apk del --no-network .build-deps;

COPY --from=ochinchina/supervisord:latest /usr/local/bin/supervisord /usr/bin/supervisord
Copy link
Owner Author

@vtsykun vtsykun Sep 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this ochinchin/supervisord dependency looks to be problematic. doesn't to have a build for the architecture arm64 and does not updated for more than 4 years


WORKDIR /var/www/packagist

COPY composer.json composer.lock /var/www/packagist/
Expand Down Expand Up @@ -78,4 +80,4 @@ ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]

EXPOSE 80

CMD ["/usr/bin/supervisord", "-n", "-c", "/etc/supervisord.conf"]
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisord.conf"]
7 changes: 0 additions & 7 deletions docker/php/supervisord.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ nodaemon=true
logfile=/var/log/supervisord.log;
pidfile=/run/supervisord.pid
loglevel=info
port=127.0.0.1:9001

[include]
files = /etc/supervisor.d/*.conf
Expand All @@ -12,11 +11,5 @@ files = /etc/supervisor.d/*.conf
file=/var/run/supervisor.sock ; (the path to the socket file)
chmod=0700 ; sockef file mode (default 0700)

[supervisorctl]
serverurl=http://127.0.0.1:9001

[inet_http_server]
port = 127.0.0.1:9001

[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface