redteam-qwen-free-api / Dockerfile
ffreemt
Update app_port: 8000
c8303f5
raw
history blame contribute delete
508 Bytes
FROM node:lts AS BUILD_IMAGE
WORKDIR /app
COPY . /app
RUN yarn install --registry https://registry.npmmirror.com/ && 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
RUN chown -R 1000:1000 /app
USER 1000
EXPOSE 8000
CMD ["npm", "start"]