-
Notifications
You must be signed in to change notification settings - Fork 25
/
Dockerfile
38 lines (28 loc) · 854 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
FROM composer:1.6 as composer
COPY . /app
RUN composer install --no-interaction --no-dev --ignore-platform-reqs --optimize-autoloader
FROM php:8.1-cli
MAINTAINER Xibo Signage Ltd <[email protected]>
ENV XMR_DEBUG false
ENV XMR_QUEUE_POLL 5
ENV XMR_QUEUE_SIZE 10
ENV XMR_IPV6RESPSUPPORT false
ENV XMR_IPV6PUBSUPPORT false
RUN apt-get update && apt-get install -y libzmq3-dev git \
&& rm -rf /var/lib/apt/lists/*
RUN git clone https://github.com/zeromq/php-zmq.git \
&& cd php-zmq \
&& phpize && ./configure \
&& make \
&& make install \
&& cd .. \
&& rm -fr php-zmq
RUN docker-php-ext-enable zmq
EXPOSE 9505 50001
COPY ./entrypoint.sh /entrypoint.sh
COPY . /opt/xmr
COPY --from=composer /app/vendor /opt/xmr/vendor
RUN chown -R nobody /opt/xmr && chmod 755 /entrypoint.sh
# Start XMR
USER nobody
CMD ["/entrypoint.sh"]