Skip to content

Commit

Permalink
Test dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
KarineGEO6 committed May 6, 2024
1 parent b376db6 commit e860197
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e860197

Please sign in to comment.