Subversion-Projekte lars-tiefland.laravel_shop

Revision

Revision 688 | Zur aktuellen Revision | Details | Vergleich mit vorheriger | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
148 lars 1
FROM ubuntu:20.04
2
 
3
LABEL maintainer="Taylor Otwell"
4
 
5
ARG WWWGROUP
6
ARG NODE_VERSION=16
7
ARG POSTGRES_VERSION=13
8
 
9
WORKDIR /var/www/html
10
 
11
ENV DEBIAN_FRONTEND noninteractive
12
ENV TZ=UTC
13
 
14
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
15
 
16
RUN apt-get update \
17
    && apt-get install -y gnupg gosu curl ca-certificates zip unzip git supervisor sqlite3 libcap2-bin libpng-dev python2 dnsutils \
18
    && curl -sS 'https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x14aa40ec0831756756d7f66c4f4ea0aae5267a6c' | gpg --dearmor | tee /usr/share/keyrings/ppa_ondrej_php.gpg > /dev/null \
19
    && echo "deb [signed-by=/usr/share/keyrings/ppa_ondrej_php.gpg] https://ppa.launchpadcontent.net/ondrej/php/ubuntu focal main" > /etc/apt/sources.list.d/ppa_ondrej_php.list \
20
    && apt-get update \
21
    && apt-get install -y php8.0-cli php8.0-dev \
688 lars 22
       php8.0-pgsql php8.0-sqlite3 php8.0-gd php8.0-imagick \
148 lars 23
       php8.0-curl php8.0-memcached \
24
       php8.0-imap php8.0-mysql php8.0-mbstring \
25
       php8.0-xml php8.0-zip php8.0-bcmath php8.0-soap \
26
       php8.0-intl php8.0-readline php8.0-pcov \
27
       php8.0-msgpack php8.0-igbinary php8.0-ldap \
28
       php8.0-redis php8.0-swoole php8.0-xdebug \
991 lars 29
    && curl -sLS https://getcomposer.org/installer | php -- --install-dir=/usr/bin/ --filename=composer \
148 lars 30
    && curl -sLS https://deb.nodesource.com/setup_$NODE_VERSION.x | bash - \
31
    && apt-get install -y nodejs \
32
    && npm install -g npm \
33
    && curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor | tee /usr/share/keyrings/yarnkey.gpg >/dev/null \
34
    && echo "deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian/ stable main" > /etc/apt/sources.list.d/yarn.list \
35
    && curl -sS https://www.postgresql.org/media/keys/ACCC4CF8.asc | gpg --dearmor | tee /usr/share/keyrings/pgdg.gpg >/dev/null \
36
    && echo "deb [signed-by=/usr/share/keyrings/pgdg.gpg] http://apt.postgresql.org/pub/repos/apt focal-pgdg main" > /etc/apt/sources.list.d/pgdg.list \
37
    && apt-get update \
38
    && apt-get install -y yarn \
39
    && apt-get install -y mysql-client \
40
    && apt-get install -y postgresql-client-$POSTGRES_VERSION \
41
    && apt-get -y autoremove \
42
    && apt-get clean \
43
    && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
44
 
45
RUN update-alternatives --set php /usr/bin/php8.0
46
 
47
RUN setcap "cap_net_bind_service=+ep" /usr/bin/php8.0
48
 
49
RUN groupadd --force -g $WWWGROUP sail
50
RUN useradd -ms /bin/bash --no-user-group -g $WWWGROUP -u 1337 sail
51
 
52
COPY start-container /usr/local/bin/start-container
53
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
54
COPY php.ini /etc/php/8.0/cli/conf.d/99-sail.ini
55
RUN chmod +x /usr/local/bin/start-container
56
 
57
EXPOSE 8000
58
 
59
ENTRYPOINT ["start-container"]