You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
415 B
21 lines
415 B
FROM java:8 |
|
ENV ELASTICSEARCH=2.4.6 |
|
|
|
# elasticsearch doesn't allow to run as root |
|
RUN useradd user |
|
RUN mkdir -p /data/esdata |
|
RUN mkdir -p /data/log |
|
RUN chown -R user:user /data |
|
|
|
WORKDIR /usr/src |
|
|
|
COPY elasticsearch-${ELASTICSEARCH} /usr/src/ |
|
COPY docker-entrypoint.sh /docker-entrypoint.sh |
|
|
|
EXPOSE 9200 |
|
EXPOSE 9300 |
|
|
|
USER user:user |
|
|
|
# RUN /usr/src/elasticsearch-2.4.6/bin/elasticsearch |
|
CMD ["/docker-entrypoint.sh"]
|
|
|