content: FROM das-api/builder AS files
  FROM rust:1.82-slim-bullseye
  ARG APP=/usr/src/app
  RUN apt update \
      && apt install -y curl ca-certificates tzdata \
      && rm -rf /var/lib/apt/lists/*
  ENV TZ=Etc/UTC \
      APP_USER=appuser
  RUN groupadd $APP_USER \
      && useradd -g $APP_USER $APP_USER \
      && mkdir -p ${APP}
  COPY --from=files /das/das_api ${APP}
  RUN chown -R $APP_USER:$APP_USER ${APP}
  USER $APP_USER
  WORKDIR ${APP}
  CMD /usr/src/app/das_api
  