File size: 590 Bytes
063602a
 
 
 
af1e84f
 
 
005c0ff
 
af1e84f
 
 
063602a
af1e84f
d5dcc64
ff993d1
063602a
af1e84f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
FROM listmonk/listmonk:latest

WORKDIR /listmonk

# Create entrypoint script directly in the Dockerfile
RUN echo '#!/bin/sh' > /entrypoint.sh && \
    echo 'set -e' >> /entrypoint.sh && \
#    echo 'echo "Initializing Listmonk database..."' >> /entrypoint.sh && \
#    echo './listmonk --install --yes || echo "Database already initialized"' >> /entrypoint.sh && \
    echo 'echo "Starting Listmonk..."' >> /entrypoint.sh && \
    echo 'exec ./listmonk' >> /entrypoint.sh && \
    chmod +x /entrypoint.sh

EXPOSE 9000

ENV LISTMONK_app__address="0.0.0.0:9000"

ENTRYPOINT ["/entrypoint.sh"]