-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
33 lines (27 loc) · 934 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 amazon/aws-lambda-provided:al2
RUN yum -y update; \
yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm; \
yum -y install https://rpms.remirepo.net/enterprise/remi-release-7.rpm; \
yum -y install yum-utils; \
yum -y install git; \
yum-config-manager --disable 'remi-php*'; \
yum-config-manager --enable remi-php80; \
yum -y install php php-mbstring php-xml php-fpm \
yum -y install nginx \
yum -y autoremove;
COPY conf/nginx.conf /etc/nginx/
RUN mkdir /tmp/nginx
COPY conf/php-fpm.conf /etc/
WORKDIR /var/runtime/
COPY runtime/ .
RUN chmod -R 755 bootstrap
RUN curl -sS https://getcomposer.org/installer | php
RUN php composer.phar install
COPY bootstrap/ .
RUN chmod -R 755 start.sh
WORKDIR /var/task
COPY api/ .
RUN curl -sS https://getcomposer.org/installer | php
RUN php composer.phar install
ENTRYPOINT ["/var/runtime/start.sh"]
CMD [ "index.php"]