Commit cdf3ae00 authored by mingyard's avatar mingyard

feat:docker file

parent 2889ef35
......@@ -27,13 +27,12 @@ ENV NODE_ENV=production
WORKDIR /usr/src/code
# 创建配置目录
RUN mkdir /etc/work-server
RUN mkdir /etc/translation-server
# 复制构建结果和依赖
COPY --from=build-stage /code/node_modules ./node_modules
COPY --from=build-stage /code/dist ./
COPY --from=build-stage /code/package.json ./
COPY --from=build-stage /code/version.txt ./version.txt
COPY ./package.json ./
# 暴露应用运行的端口
EXPOSE 3000
......
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