Commit fbad8892 authored by mingyard's avatar mingyard

feat:docker file

parent 0b0b02d4
......@@ -33,6 +33,7 @@ RUN mkdir /etc/translation-server
COPY --from=build-stage /code/node_modules ./node_modules
COPY --from=build-stage /code/dist ./
COPY ./package.json ./
COPY ./tsconfig.json ./
# 暴露应用运行的端口
EXPOSE 3000
......@@ -44,4 +45,4 @@ ENV NODE_OPTIONS=--max_old_space_size=4096
ENV TZ=Asia/Shanghai
# 启动命令
CMD [ "yarn", "start" ]
\ No newline at end of file
CMD [ "node", "main.js" ]
\ 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 to comment