FROM debian

WORKDIR /my_app

RUN --mount=type=secret,id=secret_1 \
    sed -i "s/MY_SECRET_1=/MY_SECRET_1=$(cat /run/secrets/secret_1)/" .env.production

RUN --mount=type=secret,id=secret_2 \
    sed -i "s/SOMETHING_VERY_SECRET=/SOMETHING_VERY_SECRET=$(cat /run/secrets/secret_2)/" .env.production
