# ARG BUILD_FROM # FROM $BUILD_FROM FROM node:14-bullseye-slim ENV CK_API_ENV=prod RUN mkdir -p /etc/apt RUN touch /etc/apt/sources.list RUN sed -i "s/archive.ubuntu./mirrors.aliyun./g" /etc/apt/sources.list RUN sed -i "s/deb.debian.org/mirrors.aliyun.com/g" /etc/apt/sources.list RUN sed -i "s/security.debian.org\/debian-security/mirrors.aliyun.com\/debian-security/g" /etc/apt/sources.list RUN sed -i "s/httpredir.debian.org\/debian-security/mirrors.aliyun.com\/debian-security/g" /etc/apt/sources.list RUN apt-get update && apt-get install -y python build-essential RUN mkdir -p /workspace/node_modules COPY ["./dist", "./package.json", "/workspace/"] WORKDIR /workspace RUN npm install --production --save-exact COPY ["./node_modules", "/workspace/node_modules/"] EXPOSE 3000 CMD npm start