<filename>scripts/docker/db2/Dockerfile
FROM ibmcom/db2express-c:10.5.0.5-3.10.0

# Default user
ENV DB2INST1_PASSWORD <PASSWORD>
ENV DB2INST1_USERNAME db2inst1
ENV LICENSE accept

EXPOSE 50000

VOLUME /home/db2inst1

# Add Tini
COPY tini .
RUN chmod +x tini
# Prepend tini to original entrypoint
ENTRYPOINT ["/tini", "-e", "143", "--", "/entrypoint.sh"]

CMD ["db2start"]
