-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathDockerfile
42 lines (32 loc) · 1014 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
39
40
41
42
FROM composer AS composer
COPY . /app
RUN composer install --no-interaction --no-dev --ignore-platform-reqs --optimize-autoloader
FROM php:8.2-cli
LABEL org.opencontainers.image.authors="Xibo Signage Ltd <[email protected]>"
ENV XMR_DEBUG=false
ENV XMR_QUEUE_POLL=5
ENV XMR_QUEUE_SIZE=10
ENV XMR_IPV6PUBSUPPORT=false
ENV XMR_RELAY_OLD_MESSAGES=false
ENV XMR_RELAY_MESSAGES=false
ENV XMR_SOCKETS_WS=0.0.0.0:8080
ENV XMR_SOCKETS_API=0.0.0.0:8081
ENV XMR_SOCKETS_ZM_PORT=9505
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 8080 8081 9505
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"]