FROM git.webdeploy.it/webdeploy/yarn AS build WORKDIR /usr COPY package.json ./ COPY package-lock.json ./ RUN npm ci COPY . ./ RUN npm run build FROM git.webdeploy.it/webdeploy/yarn WORKDIR /app COPY package.json ./ COPY package-lock.json ./ RUN npm ci COPY --from=build /usr/build /app EXPOSE 8000 CMD ["node", "/app"]