-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
60 lines (49 loc) · 1.6 KB
/
Dockerfile
File metadata and controls
60 lines (49 loc) · 1.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
FROM ubuntu:22.04
ENV DEBIAN_FRONTEND=noninteractive
ENV PYTHONUNBUFFERED=1
WORKDIR /usr/src/app
COPY . .
COPY scripts /scripts
RUN apt update && apt install -y software-properties-common wget
RUN add-apt-repository -y ppa:ondrej/php && apt update
RUN apt install -y \
php7.2-cli \
php7.2-common \
php7.2-fpm \
php7.2-bcmath \
php7.2-bz2 \
php7.2-curl \
php7.2-dom \
php7.2-gd \
php7.2-iconv \
php7.2-intl \
php7.2-json \
php7.2-mbstring \
php7.2-mysql \
php7.2-opcache \
php7.2-pdo \
php7.2-soap \
php7.2-sqlite3 \
php7.2-xml \
php7.2-xmlrpc \
php7.2-zip \
php7.2-redis \
nginx \
gettext-base \
git \
curl
RUN update-alternatives --set php /usr/bin/php7.2
RUN curl -sS https://getcomposer.org/installer -o composer-setup.php \
&& HASH=$(curl -sS https://composer.github.io/installer.sig) \
&& php -r "if (hash_file('SHA384', 'composer-setup.php') === '$HASH') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); exit(1); } echo PHP_EOL;" \
&& php composer-setup.php --install-dir=/usr/local/bin --filename=composer \
&& rm composer-setup.php
RUN COMPOSER_ALLOW_SUPERUSER=1 composer install
COPY nginx/nginx.conf /etc/nginx/templates/nginx.conf.template
COPY nginx/fastcgi.conf /etc/nginx/fastcgi.conf
COPY nginx/sites-enabled/ /etc/nginx/templates/sites-enabled/
RUN wget https://bootstrap.pypa.io/get-pip.py \
&& python3.10 get-pip.py \
&& pip install git+https://github.com/osuAkatsuki/akatsuki-cli \
&& rm get-pip.py
ENTRYPOINT [ "/scripts/bootstrap.sh" ]