mirror of
https://github.com/danog/TelegramApiServer.git
synced 2024-11-30 04:19:13 +01:00
Docker update
This commit is contained in:
parent
8530c2cd52
commit
ebb8deb276
@ -3,9 +3,12 @@ FROM php:7.4-cli
|
||||
COPY . /app
|
||||
WORKDIR /app
|
||||
|
||||
RUN pecl install apcu ev\
|
||||
&& docker-php-ext-enable apcu \
|
||||
&& docker-php-ext-enable ev \
|
||||
#Remove .git and other dirs and files
|
||||
RUN rm -rf .git/ .idea/ .DS_Store
|
||||
|
||||
RUN pecl install apcu ev \
|
||||
&& docker-php-ext-enable apcu ev \
|
||||
&& echo 'memory_limit = 512M' >> /usr/local/etc/php/conf.d/php.ini \
|
||||
&& apt-get update && apt-get install git zip vim nano -y \
|
||||
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \
|
||||
&& composer global require hirak/prestissimo
|
||||
|
4
bin/docker-compose-up-link-dir.sh
Executable file
4
bin/docker-compose-up-link-dir.sh
Executable file
@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
ROOT=$(dirname $0)"/.."
|
||||
|
||||
docker-compose -f "$ROOT/docker-compose.yml" -f "$ROOT/docker-compose-link-dir.yml" up -d
|
3
bin/docker-exec.sh
Executable file
3
bin/docker-exec.sh
Executable file
@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
docker exec -it telegram-api-server /bin/bash
|
3
bin/docker-logs.sh
Executable file
3
bin/docker-logs.sh
Executable file
@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
docker logs telegram-api-server --follow
|
5
docker-compose-link-dir.yml
Normal file
5
docker-compose-link-dir.yml
Normal file
@ -0,0 +1,5 @@
|
||||
version: '3'
|
||||
services:
|
||||
telegram-api-server:
|
||||
volumes:
|
||||
- ./:/app
|
@ -1,4 +1,4 @@
|
||||
version: '3.7'
|
||||
version: '3'
|
||||
services:
|
||||
telegram-api-server:
|
||||
build: ./
|
||||
|
Loading…
Reference in New Issue
Block a user