Commit df219557 by Lays-lzq

feat: dockerfile文件同步投票

parent d9c21f58
FROM alpine AS builder FROM registry.cn-hangzhou.aliyuncs.com/cduan/customer-resource-base:zabbix
WORKDIR /home/app
RUN apk add --no-cache --update nodejs yarn
COPY package.json yarn.lock ./
RUN yarn install --registry=https://registry.yarnpkg.com
FROM registry.cn-hangzhou.aliyuncs.com/open_images/node12.13.1-pm2
ADD ./ /var/www/web_lottery ADD ./ /var/www/web_lottery
ENV HOST 0.0.0.0 ENV HOST 0.0.0.0
ENV TZ Asia/Shanghai ENV TZ Asia/Shanghai
WORKDIR /var/www/web_lottery WORKDIR /var/www/web_lottery
COPY --from=builder /home/app/package.json ./package.json RUN yarn install
COPY --from=builder /home/app/node_modules ./node_modules
RUN yarn build:cm RUN yarn build:cm
RUN rm -rf assets components layouts middleware pages plugins store .eslintrc.js .gitignore build.yml Dockerfile README.md start.sh RUN rm -rf assets components layouts middleware pages plugins store .eslintrc.js .gitignore build.yml Dockerfile README.md start.sh
EXPOSE 4002 EXPOSE 4002
RUN chmod +x cmStart.sh RUN chmod +x cmStart.sh
ENTRYPOINT ["./cmStart.sh"] ENTRYPOINT ["./cmStart.sh"]
\ No newline at end of file
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 sign in to comment