Permalink
Cannot retrieve contributors at this time
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
20 lines (13 sloc)
499 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM php-worker:7.4-alpine | |
# Edit here to use a different location | |
# and remember to chown/chmod to phpuser | |
# and use USER root if you need to work on system stuff | |
ENV WORKER_HOME ${HOME}/worker | |
RUN mkdir -p ${WORKER_HOME} | |
COPY ./worker/bin ${WORKER_HOME}/bin | |
COPY ./worker/composer.json ${WORKER_HOME}/composer.json | |
WORKDIR ${WORKER_HOME} | |
RUN composer install --no-interaction | |
ENV PATH="~/.composer/vendor/bin:./vendor/bin:${PATH}" | |
# Edit below to use a different command | |
CMD ["bin/worker"] |