Create Dockerfile1

This commit is contained in:
Daniel Dimitrov 2024-08-25 14:16:22 +03:00 committed by GitHub
parent 1f989a94a2
commit 3846091586
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

9
Dockerfile1 Normal file
View file

@ -0,0 +1,9 @@
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