Docker update

This commit is contained in:
Alexander Pankratov 2020-03-10 00:15:13 +03:00
parent 8530c2cd52
commit ebb8deb276
6 changed files with 22 additions and 4 deletions

View File

@ -3,9 +3,12 @@ FROM php:7.4-cli
COPY . /app COPY . /app
WORKDIR /app WORKDIR /app
RUN pecl install apcu ev\ #Remove .git and other dirs and files
&& docker-php-ext-enable apcu \ RUN rm -rf .git/ .idea/ .DS_Store
&& docker-php-ext-enable ev \
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 \ && 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 \ && curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \
&& composer global require hirak/prestissimo && composer global require hirak/prestissimo

View 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
View File

@ -0,0 +1,3 @@
#!/bin/bash
docker exec -it telegram-api-server /bin/bash

3
bin/docker-logs.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/bash
docker logs telegram-api-server --follow

View File

@ -0,0 +1,5 @@
version: '3'
services:
telegram-api-server:
volumes:
- ./:/app

View File

@ -1,4 +1,4 @@
version: '3.7' version: '3'
services: services:
telegram-api-server: telegram-api-server:
build: ./ build: ./