| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 | # base imageFROM node:18.17.0-alpine AS base# install packagesFROM base as packagesLABEL maintainer="takatost@gmail.com"WORKDIR /app/webCOPY package.json .COPY yarn.lock .RUN yarn --only=prod# build resourcesFROM base as builderWORKDIR /app/webCOPY --from=packages /app/web/ .COPY . .RUN yarn build# production stageFROM base as productionENV NODE_ENV productionENV EDITION SELF_HOSTEDENV DEPLOY_ENV PRODUCTIONENV CONSOLE_API_URL http://127.0.0.1:5001ENV APP_API_URL http://127.0.0.1:5001ENV PORT 3000WORKDIR /app/webCOPY --from=builder /app/web/public ./publicCOPY --from=builder /app/web/.next/standalone ./COPY --from=builder /app/web/.next/static ./.next/staticCOPY docker/entrypoint.sh ./entrypoint.shRUN chmod +x ./entrypoint.shARG COMMIT_SHAENV COMMIT_SHA ${COMMIT_SHA}EXPOSE 3000ENTRYPOINT ["/bin/sh", "./entrypoint.sh"]
 |