24 lines
679 B
Docker
24 lines
679 B
Docker
FROM ubuntu:22.04
|
|
|
|
# add php ppa and setup apt
|
|
RUN apt update && apt -y install software-properties-common && add-apt-repository ppa:ondrej/php
|
|
|
|
# base php & composer
|
|
RUN DEBIAN_FRONTEND=noninteractive apt install -y --no-install-recommends php8.2-cli composer
|
|
|
|
# curl, gd, xml
|
|
RUN apt install -y --no-install-recommends php8.2-gd php8.2-xml php8.2-curl php8.2-redis php8.2-mbstring php8.2-zip
|
|
|
|
# change locale
|
|
RUN apt install -y locales \
|
|
&& sed -i 's/^# *\(de_DE.UTF-8\)/\1/' /etc/locale.gen \
|
|
&& locale-gen
|
|
|
|
# cleanup
|
|
RUN rm -rf /var/lib/apt/lists/*
|
|
|
|
# runtime
|
|
COPY docker-php-entrypoint /usr/local/bin/
|
|
ENTRYPOINT ["/usr/local/bin/docker-php-entrypoint"]
|
|
CMD ["php", "-a"]
|