<reponame>celli33/resources-sat-xml-generator<filename>Dockerfile<gh_stars>1-10
FROM php:7.4-cli

COPY . /opt/generator

COPY --from=composer:latest /usr/bin/composer /usr/bin/composer

RUN set -e && \
    apt-get update && \
    apt-get install -y --no-install-recommends git zip unzip && \
    apt-get clean -y && \
    rm -rf /var/lib/apt/lists/*

RUN set -e && \
    cd /opt/generator && \
    export COMPOSER_ALLOW_SUPERUSER=1 && \
    composer install --ansi --no-dev --no-cache --prefer-dist --no-progress --no-interaction

ENTRYPOINT ["php", "/opt/generator/bin/resources-sat-xml-generator"]
