Commit 4b7b92f5 authored by 智勇's avatar 智勇

nodejs

parent 31d35aca
FROM scratch
COPY ./*tgz /code/
\ No newline at end of file
ARG FROM_IMAGE
FROM ${FROM_IMAGE}
FROM node:8.15.0-slim
WORKDIR /home/quant_group
ENV NODE_ENV=test
ARG SYSTEM_NAME
ENV SYSTEM_NAME=$SYSTEM_NAME
ARG BUILD_SCHEMA
ENV BUILD_SCHEMA=$BUILD_SCHEMA
RUN echo -e "${BUILD_SCHEMA//@/\n}" >> ./build_info
COPY docker-entrypoint.sh .
COPY --from=0 /code/* /home/quant_group/project/dist.tgz
CMD ["sh", "docker-entrypoint.sh"]
\ No newline at end of file
#!/bin/bash
echo 172.30.10.23 git.quantgroup.cn >> /etc/hosts
curl -sSL http://git.quantgroup.cn/QA/qg-docker-entrypoints/raw/java/tke/nodejs.sh -o run.sh
sh run.sh
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment