1 Star 0 Fork 0

xhua / wp-calypso

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Dockerfile 1.05 KB
一键复制 编辑 原始数据 按行查看 历史
FROM node:12.18.0
LABEL maintainer="Automattic"
WORKDIR /calypso
ENV CONTAINER 'docker'
ENV PROGRESS=true
# Build a "base" layer
#
# This layer should never change unless env-config.sh
# changes. For local development this should always
# be an empty file and therefore this layer should
# cache well.
#
# env-config.sh
# used by systems to overwrite some defaults
# such as the apt and npm mirrors
COPY ./env-config.sh /tmp/env-config.sh
RUN bash /tmp/env-config.sh
# Build a "source" layer
#
# This layer is populated with up-to-date files from
# Calypso development.
COPY . /calypso/
RUN yarn install --frozen-lockfile && yarn cache clean
# Build the final layer
#
# This contains built environments of Calypso. It will
# change any time any of the Calypso source-code changes.
ARG commit_sha="(unknown)"
ENV COMMIT_SHA $commit_sha
ARG workers
RUN WORKERS=$workers CALYPSO_ENV=production BUILD_TRANSLATION_CHUNKS=true yarn run build
USER nobody
CMD NODE_ENV=production node build/bundle.js
1
https://gitee.com/xhua/wp-calypso.git
git@gitee.com:xhua/wp-calypso.git
xhua
wp-calypso
wp-calypso
master

搜索帮助