mirror of
https://gitee.com/eolink_admin/postcat.git
synced 2024-12-04 20:58:01 +08:00
a51feb0311
* feat: update extension UI * fix(components): [manage-access] a tag rename to span * feat: update e2e Co-authored-by: buqiyuan <1743369777@qq.com> Co-authored-by: 夜鹰 <17kungfuboy@gmail.com>
35 lines
794 B
Docker
35 lines
794 B
Docker
FROM node:lts-alpine as builder
|
|
|
|
WORKDIR /test-server
|
|
|
|
# api 测试服务端口
|
|
ENV NODE_SERVER_PORT 4201
|
|
# websocket 测试服务端口
|
|
ENV EOAPI_WEBSOCKET_PORT 4202
|
|
|
|
COPY /src/workbench/node /test-server
|
|
|
|
RUN npm config set registry https://registry.npmmirror.com
|
|
RUN yarn config set registry https://registry.npmmirror.com
|
|
RUN yarn install
|
|
|
|
EXPOSE $NODE_SERVER_PORT $EOAPI_WEBSOCKET_PORT
|
|
|
|
CMD ["yarn", "start:all"]
|
|
|
|
|
|
FROM nginx:alpine as production
|
|
|
|
ENV NODE_ENV production
|
|
# 远程服务端口
|
|
ENV EOAPI_SERVER_PORT 3000
|
|
# api 测试服务端口
|
|
ENV NODE_SERVER_PORT 4201
|
|
# websocket 测试服务端口
|
|
ENV EOAPI_WEBSOCKET_PORT 4202
|
|
|
|
COPY ./src/workbench/browser/dist/ /usr/share/nginx/html
|
|
COPY ./default.conf.template /etc/nginx/templates/
|
|
|
|
EXPOSE $NODE_SERVER_PORT $EOAPI_WEBSOCKET_PORT
|