Ai
1 Star 0 Fork 0

Kover Cheng/nodejs-openapi-server-template

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 587 Bytes
一键复制 编辑 原始数据 按行查看 历史
Kover Cheng 提交于 2021-07-25 19:05 +08:00 . Update Express Based - 0725
FROM node:alpine AS builder
WORKDIR /app
COPY express_based .
RUN npm install \
&& npm run compile \
&& rm -rf server node_modules \
&& npm install --production
FROM alpine
WORKDIR /app
COPY --from=builder /app .
RUN apk add --no-cache --update nodejs npm
ENV NODE_ENV production
# DB Connection String
ENV PGCONNECTURL postgres://postgres:12345@host.docker.internal:5432/examplePg
ENV MONGOCONNECTURL mongodb://mongo:12345@host.docker.internal:27017/exampleMongo
ENV REDISCONNECTURL redis://:12345@host.docker.internal:6379/0
EXPOSE 3000
ENTRYPOINT [ "npm", "start" ]
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
NodeJS
1
https://gitee.com/KoverCheng/nodejs-openapi-server-template.git
git@gitee.com:KoverCheng/nodejs-openapi-server-template.git
KoverCheng
nodejs-openapi-server-template
nodejs-openapi-server-template
Express_based

搜索帮助