Files
metasfresh-docker/docker-src/webapi/Dockerfile
T
jb 834114ef84 #3 metasfresh/metasfresh-docker fix pushed folder
FRESH-1292 #3 Integrate docker-compose master files to metasfresh-docker on git
2017-02-02 15:24:13 +01:00

23 lines
918 B
Docker

FROM ubuntu:16.04
RUN apt update && apt -y full-upgrade
RUN apt -y install netcat \
&& apt -y install curl \
&& apt -y install openjdk-8-jdk-headless \
&& apt -y install postgresql-client-9.5 \
&& apt -y autoremove \
&& apt -y autoclean
COPY sources/configs/local_settings.properties /root/
RUN mkdir -p /opt/metasfresh-webui-api/metasfresh-webui-api \
&& mkdir -p /opt/metasfresh-webui-api/log
RUN curl https://repo.metasfresh.com/content/groups/mvn-FRESH-112/de/metas/ui/web/metasfresh-webui-api/2.325/metasfresh-webui-api-2.325.jar \
--output /opt/metasfresh-webui-api/metasfresh-webui-api.jar \
&& chmod 750 /opt/metasfresh-webui-api/metasfresh-webui-api.jar
COPY sources/configs/* /opt/metasfresh-webui-api/
COPY sources/start_webapi.sh /opt/metasfresh-webui-api/
RUN chmod 700 /opt/metasfresh-webui-api/start_webapi.sh
ENTRYPOINT ["/opt/metasfresh-webui-api/start_webapi.sh"]