Subversion-Projekte lars-tiefland.laravel_shop

Revision

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

Revision Autor Zeilennr. Zeile
148 lars 1
FROM ubuntu:22.04
2
 
3
LABEL maintainer="Taylor Otwell"
4
 
5
ARG WWWGROUP
6
ARG NODE_VERSION=18
7
ARG POSTGRES_VERSION=14
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 jammy main" > /etc/apt/sources.list.d/ppa_ondrej_php.list \
20
    && apt-get update \
21
    && apt-get install -y php8.1-cli php8.1-dev \
22
       php8.1-pgsql php8.1-sqlite3 php8.1-gd \
23
       php8.1-curl \
24
       php8.1-imap php8.1-mysql php8.1-mbstring \
25
       php8.1-xml php8.1-zip php8.1-bcmath php8.1-soap \
26
       php8.1-intl php8.1-readline \
27
       php8.1-ldap \
28
       php8.1-msgpack php8.1-igbinary php8.1-redis php8.1-swoole \
29
       php8.1-memcached php8.1-pcov php8.1-xdebug \
30
    && php -r "readfile('https://getcomposer.org/installer');" | php -- --install-dir=/usr/bin/ --filename=composer \
31
    && curl -sLS https://deb.nodesource.com/setup_$NODE_VERSION.x | bash - \
32
    && apt-get install -y nodejs \
33
    && npm install -g npm \
34
    && curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor | tee /usr/share/keyrings/yarn.gpg >/dev/null \
35
    && echo "deb [signed-by=/usr/share/keyrings/yarn.gpg] https://dl.yarnpkg.com/debian/ stable main" > /etc/apt/sources.list.d/yarn.list \
36
    && curl -sS https://www.postgresql.org/media/keys/ACCC4CF8.asc | gpg --dearmor | tee /usr/share/keyrings/pgdg.gpg >/dev/null \
37
    && echo "deb [signed-by=/usr/share/keyrings/pgdg.gpg] http://apt.postgresql.org/pub/repos/apt jammy-pgdg main" > /etc/apt/sources.list.d/pgdg.list \
38
    && apt-get update \
39
    && apt-get install -y yarn \
40
    && apt-get install -y mysql-client \
41
    && apt-get install -y postgresql-client-$POSTGRES_VERSION \
42
    && apt-get -y autoremove \
43
    && apt-get clean \
44
    && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
45
 
46
RUN setcap "cap_net_bind_service=+ep" /usr/bin/php8.1
47
 
48
RUN groupadd --force -g $WWWGROUP sail
49
RUN useradd -ms /bin/bash --no-user-group -g $WWWGROUP -u 1337 sail
50
 
51
COPY start-container /usr/local/bin/start-container
52
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
53
COPY php.ini /etc/php/8.1/cli/conf.d/99-sail.ini
54
RUN chmod +x /usr/local/bin/start-container
55
 
56
EXPOSE 8000
57
 
58
ENTRYPOINT ["start-container"]