PHRDPL-61 #comment worker use the app user to run jobs

This commit is contained in:
Alexandre BRACH
2019-06-13 11:22:10 +02:00
parent b3893261bd
commit 7fe9739625
3 changed files with 11 additions and 2 deletions

View File

@@ -88,7 +88,7 @@ COPY templates /var/alchemy/templates
COPY tests /var/alchemy/tests
# Phraseanet
FROM php:7.0-fpm-stretch as phraseanet
FROM php:7.0-fpm-stretch as phraseanet-fpm
RUN apt-get update \
&& apt-get install -y \
apt-transport-https \
@@ -152,6 +152,10 @@ WORKDIR /var/alchemy/Phraseanet
ENTRYPOINT ["/phraseanet-entrypoint.sh"]
CMD ["/boot.sh"]
# phraseanet-worker
FROM phraseanet-fpm as phraseanet-worker
CMD ["/worker-boot.sh"]
# phraseanet-nginx
FROM nginx:1.15 as phraseanet-nginx
RUN useradd -u 1000 app