From e86019719a2da0f675c53a1070d70c73bd824090 Mon Sep 17 00:00:00 2001 From: kls Date: Mon, 6 May 2024 14:46:31 -0500 Subject: [PATCH] Test dockerfile --- Dockerfile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index e78d32d..27ddbcf 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,17 +20,19 @@ RUN if [ ! -f .env ]; then \ echo "il y passe"; \ fi -RUN if [ ! -f .env ]; then \ +RUN if [ -f .env ]; then \ + cp .env /app/.env; \ + echo "fic exist"; \ + else \ echo "EDS_API_URL=${EDS_API_URL}" >> .env; \ echo "EDS_AUTH_URL=${EDS_AUTH_URL}" >> .env; \ echo "AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}" >> .env; \ echo "AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}" >> .env; \ echo "INPUT_JSON_PATH=${INPUT_JSON_PATH}" >> .env; \ echo "GATEWAY_STAGE=${GATEWAY_STAGE}" >> .env; \ + echo .env; \ fi -COPY .env . - COPY docker-entrypoint.sh /usr/local/bin/ RUN dos2unix /usr/local/bin/docker-entrypoint.sh RUN chmod +x /usr/local/bin/docker-entrypoint.sh