Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
Dockerfile.frontend 478 Bytes
Copy Edit Raw Blame History
FROM node:alpine
USER root
ENV WORKING_DIR /app/AutoTest-Platform
# Provides cached layer for node_modules
COPY frontend ${WORKING_DIR}/frontend
RUN sh -c "echo 'Asia/Shanghai' > /etc/timezone" \
&& cd ${WORKING_DIR}/frontend \
&& npm install -g cnpm --registry=https://registry.npm.taobao.org \
&& cnpm install phantomjs-prebuilt@2.1.16 --ignore-scripts \
&& cnpm rebuild node-sass \
&& cnpm install
ENTRYPOINT cd ${WORKING_DIR}/frontend; npm run build
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化