0
我創建了一個容器。這是代碼:無法在Bluemix平臺上部署自己的容器?
FROM openjdk:8u131
MAINTAINER Abderrazak Landoulsi
EXPOSE 6001
RUN apt-get update
RUN apt-get install -y -q --no-install-recommends \
apt-transport-https \
build-essential \
ca-certificates \
curl \
g++ \
gcc \
make \
&& rm -rf /var/lib/apt/lists/* \
&& apt-get -y autoclean
RUN curl -sL https://deb.nodesource.com/setup_8.x | bash -
RUN apt-get install -y nodejs
ADD MyApp /MyApp
WORKDIR /MyApp
RUN npm install
CMD ["node","/MyApp/app"]
正如您所看到的,它非常簡單。我需要Java,因爲在我的節點應用程序中,我使用JDBC模塊以as400連接到Db2。我可以在我的本地機器上運行這個容器。但是,當我推送圖像並在Bluemix上創建新容器時,該建築物將停止,並且我可以看到狀態已停止。
我在嘗試在Bluemix平臺上部署時錯過了什麼嗎?
謝謝。