blob: 3fe28ed3bc1b48df74ac6644c39c881ba16c4c95 [file] [log] [blame]
#*******************************************************************************
# Copyright (c) 2014, 2016 Orange.
# All rights reserved.This program and the accompanying materials
# are made available under the terms of the Eclipse Public License 2.0
# which accompanies this distribution, and is available at
# https://www.eclipse.org/legal/epl-2.0/
#
# Contributors:
# S�bastien BOLLE (Orange),
# Gr�gory BONNARDEL (Thales for Orange),
# Cyrille Bareau (Orange).
#*******************************************************************************
FROM openjdk:8-jre-alpine
# install incse
COPY target/products/mn-cse/ /tmp/mncse
RUN mv /tmp/mncse/*/*/* /mncse
RUN chmod +x /mncse/start.sh
RUN chmod +x /mncse/start.bat
# expose port 8282 (http) & 5683 (coap)
EXPOSE 8282
EXPOSE 5683
WORKDIR /mncse/
RUN echo "#!/bin/sh" >> /startFromDocker.sh
RUN echo "cd /mncse/ && ./start.sh" >> /startFromDocker.sh
RUN chmod +x /startFromDocker.sh
VOLUME /mncse/configurations
VOLUME /mncse/configuration
CMD ["/startFromDocker.sh"]