mirror of
https://github.com/bitinflow/expose.git
synced 2026-03-13 21:45:55 +00:00
26 lines
551 B
Docker
26 lines
551 B
Docker
FROM php:8.0-cli
|
|
|
|
RUN apt-get update
|
|
RUN apt-get install -y git libzip-dev zip
|
|
|
|
RUN docker-php-ext-install zip
|
|
|
|
# Get latest Composer
|
|
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
|
|
|
|
COPY . /src
|
|
WORKDIR /src
|
|
|
|
# install the dependencies
|
|
RUN composer install -o --prefer-dist && chmod a+x expose
|
|
|
|
ENV port=8080
|
|
ENV domain=localhost
|
|
ENV username=username
|
|
ENV password=password
|
|
ENV exposeConfigPath=/src/config/expose.php
|
|
|
|
COPY docker-entrypoint.sh /usr/bin/
|
|
RUN chmod 755 /usr/bin/docker-entrypoint.sh
|
|
ENTRYPOINT ["docker-entrypoint.sh"]
|