forked from xtrime-ru/TelegramRSS
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (24 loc) · 1.04 KB
/
Dockerfile
File metadata and controls
32 lines (24 loc) · 1.04 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 php:8.0-cli
RUN apt-get update \
&& apt-get install git zip libzip-dev libssl-dev -y \
# Install additional extension \
&& docker-php-ext-install -j$(nproc) sockets zip \
&& mkdir -p /usr/src/php/ext/ && cd /usr/src/php/ext/ \
&& pecl bundle swoole \
&& docker-php-ext-configure swoole --enable-sockets=yes --enable-openssl=yes \
&& docker-php-ext-install -j$(nproc) swoole \
&& docker-php-source delete \
&& apt-get autoremove --purge -y && apt-get autoclean -y && apt-get clean -y \
&& rm -rf /usr/src \
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
COPY . /app
WORKDIR /app
RUN cp -a docker/php/conf.d/. "$PHP_INI_DIR/conf.d/" \
&& composer install -o --no-dev && composer clear
#Creating symlink to save .env in volume
RUN mkdir /app/volume/ && \
touch '/app/volume/.env.docker' && \
ln -s '/app/volume/.env.docker' '/app/.env.docker'
VOLUME ["/app/volume", "/app/log", "/app/cache"]
EXPOSE 9504
ENTRYPOINT php server.php --docker