Dockerfile FROM node:lts-alpine ARG APP_DIR=/usr/src/app WORKDIR ${APP_DIR} COPY . ./ RUN npm install EXPOSE 9080 ENV HOST=0.0.0.0 ENV PORT=9080 RUN npm run build USER node CMD [ "npm", "run", "start" ] 参考: Node.js is a JavaScript-based platform for server-side and networking applications.Deploy Nuxt on Google Cloud Runadduser和addgroup命令讲解Docker & containersHow to add a file to a docker container which has no root permissions?Docker COPY