forked from gricob/teltonika-fm-parser
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
33 lines (25 loc) · 794 Bytes
/
Dockerfile
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
33
FROM php:7-cli-alpine
LABEL maintainer="Timo Taskinen <timo.taskinen@iki.fi>"
# Install tools
RUN apk add --update \
supervisor \
bash \
nano
# Install PHP dependencies
RUN docker-php-ext-install bcmath
# Install Composer
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
# Copy app into image
COPY composer.json /usr/src/app/
COPY ./src /usr/src/app/src/
COPY importer.php /usr/src/app/
WORKDIR /usr/src/app
# Install dependencies
RUN composer install
# Dump autoload
RUN composer dump-autoload -o
# Configure supervisord
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
ENTRYPOINT ["/usr/bin/supervisord","-c","/etc/supervisor/conf.d/supervisord.conf"]
# Copy environment configuration
COPY .env /usr/src/app/