mirror of
https://github.com/LLM-Red-Team/glm-free-api.git
synced 2024-12-22 08:59:23 +08:00
21 lines
485 B
Docker
21 lines
485 B
Docker
FROM node:lts AS BUILD_IMAGE
|
|
|
|
WORKDIR /app
|
|
|
|
COPY . /app
|
|
|
|
RUN yarn install --registry https://registry.npmmirror.com/ --ignore-engines && yarn run build
|
|
|
|
FROM node:lts-alpine
|
|
|
|
COPY --from=BUILD_IMAGE /app/configs /app/configs
|
|
COPY --from=BUILD_IMAGE /app/package.json /app/package.json
|
|
COPY --from=BUILD_IMAGE /app/dist /app/dist
|
|
COPY --from=BUILD_IMAGE /app/public /app/public
|
|
COPY --from=BUILD_IMAGE /app/node_modules /app/node_modules
|
|
|
|
WORKDIR /app
|
|
|
|
EXPOSE 8000
|
|
|
|
CMD ["npm", "start"] |