-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathContainerfile
More file actions
34 lines (20 loc) · 1.01 KB
/
Containerfile
File metadata and controls
34 lines (20 loc) · 1.01 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
FROM docker.io/php:8.2.4-alpine
RUN apk add git php-pcntl \
php-dom php-ctype php-fileinfo php-sqlite3 php-xml
# Install primemodulef
RUN apk add g++ gcc make \
&& git clone https://github.com/danog/PrimeModule-ext \
&& cd PrimeModule-ext && make -j$(nproc) \
&& make install \
&& cd .. && rm -rf PrimeModule
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" \
&& php -r "if (hash_file('sha384', 'composer-setup.php') === '55ce33d7678c5a611085589f1f3ddf8b3c52d662cd01d4ba75c0ee0459970c2200a51f492d557530c71c15d8dba01eae') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" \
&& php composer-setup.php \
&& php -r "unlink('composer-setup.php');" \
&& install composer.phar /usr/local/bin/composer
#Copy project contents
COPY . /app
WORKDIR /app
#Install dependencies mentioned in composer.json and composer.lock
RUN composer install --no-interaction
CMD [ "echo", "Hello from MadelineProto Container Image" ]