forked from demostf/api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
19 lines (14 loc) · 695 Bytes
/
Dockerfile
File metadata and controls
19 lines (14 loc) · 695 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM icewind1991/php-alpine-apcu
RUN wget -q https://github.com/demostf/parser/releases/download/v0.4.0/parse_demo -O /app/parse_demo && \
chmod +x /app/parse_demo
COPY composer.json composer.lock /app/
RUN apk add --no-cache git \
&& wget -q https://getcomposer.org/composer.phar \
&& php composer.phar --working-dir=/app install --no-dev --no-interaction --ignore-platform-reqs \
&& rm composer.phar \
&& apk del git
COPY src /app/src
ENV PARSER_PATH /app/parse_demo
RUN echo "clear_env = no" >> /usr/local/etc/php/php-fpm.conf \
&& echo "post_max_size = 150M" >> /usr/local/etc/php/php.ini \
&& echo "upload_max_filesize = 150M" >> /usr/local/etc/php/php.ini