Files
EdgeManager/Dockerfile

28 lines
882 B
Docker
Raw Normal View History

2022-09-22 21:39:25 +08:00
FROM alpine:latest
ENV TZ=Asia/Shanghai
RUN echo 'https://mirrors.ustc.edu.cn/alpine/latest-stable/main/' > /etc/apk/repositories \
&& echo 'https://mirrors.ustc.edu.cn/alpine/latest-stable/community/' >> /etc/apk/repositories \
2022-09-22 21:39:25 +08:00
&& apk update \
&& apk add alpine-conf \
&& /sbin/setup-timezone -z $TZ \
&& apk del alpine-conf
2022-09-25 21:01:05 +08:00
RUN apk --no-cache add php81 \
2022-09-22 21:39:25 +08:00
php81-posix \
php81-pcntl \
php81-pgsql \
php81-openssl \
2022-09-25 21:01:05 +08:00
php81-mbstring \
2022-09-22 21:39:25 +08:00
php81-curl \
2022-09-25 21:01:05 +08:00
php81-phar \
2022-09-22 21:39:25 +08:00
php81-pecl-event \
2022-09-25 21:01:05 +08:00
&& ln -s /usr/bin/php81 /usr/local/bin/php
2022-09-22 21:39:25 +08:00
RUN apk --no-cache add curl \
&& curl -s https://mirrors.aliyun.com/composer/composer.phar -o /usr/local/bin/composer \
&& chmod +x /usr/local/bin/composer \
2022-09-22 21:39:25 +08:00
&& composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/ \
&& apk del curl
2022-09-22 21:39:25 +08:00
WORKDIR /EdgeManager