在ubuntu 14.04映像中使用Dockspizing webspare自由时出错

时间:2017-01-20 06:48:21

标签: docker ubuntu-14.04 websphere-liberty

FROM ubuntu:14.04

# Install JRE
RUN apt-get update 
RUN apt-get install -y --no-install-recommends unzip 
RUN apt-get -y install openjdk-7-jre 
RUN apt-get -y install wget

RUN apt-get update \
    && apt-get install -y --no-install-recommends unzip \
    && rm -rf /var/lib/apt/lists/*



# Install WebSphere Liberty
ENV LIBERTY_VERSION 16.0.0_04


ARG LIBERTY_URL

ARG DOWNLOAD_OPTIONS=""

RUN LIBERTY_URL=${LIBERTY_URL:-$(wget -q -O - https://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/wasdev/downloads/wlp/index.yml  | grep $LIBERTY_VERSION -A 6 | sed -n 's/\s*kernel:\s//p' | tr -d '\r' )}  \
        && wget $DOWNLOAD_OPTIONS $LIBERTY_URL -U UA-IBM-WebSphere-Liberty-Docker -O /tmp/wlp.zip \
        && unzip -q /tmp/wlp.zip -d /opt/ibm \
        && rm /tmp/wlp.zip

ENV PATH=/opt/ibm/wlp/bin:$PATH

# Set Path Shortcuts
ENV LOG_DIR=/logs \
        WLP_OUTPUT_DIR=/opt/ibm/wlp/output

RUN mkdir /logs \
        && ln -s $WLP_OUTPUT_DIR/defaultServer /output \
        && ln -s /opt/ibm/wlp/usr/servers/defaultServer /config

# Configure WebSphere Liberty

RUN /opt/ibm/wlp/bin/server create \
        && rm -rf $WLP_OUTPUT_DIR/.classCache /output/workarea

COPY docker-server /opt/ibm/docker/

EXPOSE 9080 9443

CMD ["/opt/ibm/docker/docker-server", "run", "defaultServer"]

当我构建dockerfile时出现一个错误“步骤15:COPY docker-server / opt / ibm / docker / lstat docker-server:没有这样的文件或目录“请让我知道如何解决这个问题.Docker版本是1.12.5

0 个答案:

没有答案