mirror of
https://github.com/easychen/pushdeer.git
synced 2024-11-01 08:09:19 +08:00
20 lines
402 B
Docker
20 lines
402 B
Docker
FROM node:16-alpine3.15
|
|
|
|
RUN apk --no-cache add mosquitto mosquitto-clients
|
|
RUN npm install -g forever
|
|
|
|
ADD mosquitto.conf /mosquitto.conf
|
|
RUN /usr/sbin/mosquitto -c /mosquitto.conf -d
|
|
|
|
# 测试时注释掉下一行
|
|
# COPY api /api
|
|
|
|
COPY init.sh /init.sh
|
|
RUN chmod +x /init.sh
|
|
EXPOSE 1883
|
|
EXPOSE 80
|
|
|
|
ENTRYPOINT ["/bin/sh", "/init.sh"]
|
|
|
|
|
|
# ENTRYPOINT ["/usr/sbin/mosquitto", "-c", "/mosquitto.conf",""] |