weitere Module + Base Image Ubuntu

This commit is contained in:
2022-11-16 13:28:19 +01:00
parent 085db384d9
commit 247237aefe
3 changed files with 30 additions and 6 deletions

View File

@ -1,8 +1,23 @@
FROM php:7.4-cli
FROM ubuntu:20.04
RUN apt update \
&& apt install -y locales \
&& rm -rf /var/lib/apt/lists/*
# setup apt
RUN apt update
RUN sed -i 's/^# *\(de_DE.UTF-8\)/\1/' /etc/locale.gen \
# base php & composer
RUN DEBIAN_FRONTEND=noninteractive apt install -y --no-install-recommends php-cli composer
# curl, gd, xml
RUN apt install -y --no-install-recommends php-gd php-xml php-curl
# 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"]