blob: 31197e3e4c01c08a7a3c719490cb8a2be70558b6 [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 v1.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/in-cse/ /tmp/incse
RUN mv /tmp/incse/*/*/* /incse
RUN chmod +x /incse/start.sh
RUN chmod +x /incse/start.bat
# expose port 8080 (http) & 5683 (coap)
EXPOSE 8080
EXPOSE 5683
WORKDIR /incse/
RUN echo "#!/bin/sh" >> /startFromDocker.sh
RUN echo "cd /incse/ && ./start.sh" >> /startFromDocker.sh
RUN chmod +x /startFromDocker.sh
VOLUME /incse/configurations
VOLUME /incse/configuration
CMD ["/startFromDocker.sh"]