1 Star 0 Fork 0

oneness/mongo-express

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Dockerfile 1.12 KB
一键复制 编辑 原始数据 按行查看 历史
oneness 提交于 2017-03-16 19:24 . first commit
FROM node:5-slim
# grab tini for signal processing and zombie killing
ENV TINI_VERSION 0.9.0
RUN set -x \
&& apt-get update && apt-get install -y ca-certificates curl \
--no-install-recommends \
&& curl -fSL "https://github.com/krallin/tini/releases/download/v${TINI_VERSION}/tini" -o /usr/local/bin/tini \
&& curl -fSL "https://github.com/krallin/tini/releases/download/v${TINI_VERSION}/tini.asc" -o /usr/local/bin/tini.asc \
&& export GNUPGHOME="$(mktemp -d)" \
&& gpg --keyserver ha.pool.sks-keyservers.net --recv-keys 6380DC428747F6C393FEACA59A84159D7001A4E5 \
&& gpg --batch --verify /usr/local/bin/tini.asc /usr/local/bin/tini \
&& rm -r "$GNUPGHOME" /usr/local/bin/tini.asc \
&& chmod +x /usr/local/bin/tini \
&& tini -h \
&& apt-get purge --auto-remove -y ca-certificates curl \
&& rm -rf /var/lib/apt/lists/*
EXPOSE 8081
# override some config defaults with values that will work better for docker
ENV ME_CONFIG_MONGODB_SERVER="mongo"
ENV ME_CONFIG_MONGODB_ENABLE_ADMIN="true"
ENV VCAP_APP_HOST="0.0.0.0"
WORKDIR /app
COPY . /app
RUN cp config.default.js config.js
RUN npm install
CMD ["tini", "--", "npm", "start"]
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/oneness/mongo-express.git
git@gitee.com:oneness/mongo-express.git
oneness
mongo-express
mongo-express
master

搜索帮助