18 lines
452 B
Docker
18 lines
452 B
Docker
ARG BASE_VERSION
|
|
|
|
FROM php:${BASE_VERSION}-fpm-alpine
|
|
|
|
# port to for the webserver
|
|
ENV WEBSERVER_PORT=8080
|
|
|
|
COPY start-container.sh /usr/local/bin/start-container
|
|
|
|
RUN apk add --no-cache curl-dev libxml2-dev oniguruma-dev composer npm \
|
|
&& docker-php-ext-install ctype curl dom fileinfo filter mbstring pdo session xml \
|
|
&& chmod +x /usr/local/bin/start-container
|
|
|
|
EXPOSE ${WEBSERVER_PORT}
|
|
|
|
WORKDIR /var/www/html
|
|
|
|
ENTRYPOINT ["start-container"] |