postcat/Dockerfile
Scarqin a51feb0311
feat/ui-component (#188)
* 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>
2022-12-30 23:46:51 +08:00

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