Skip to content

Commit

Permalink
Update .env dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
KarineGEO6 committed May 6, 2024
1 parent bac2ecd commit d8e28f1
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,15 @@ RUN pip cache purge; exit 0
RUN apt-get update && apt-get install -y dos2unix
COPY ./src .

ARG EDS_API_URL
ARG EDS_AUTH_URL
ARG AWS_ACCESS_KEY_ID
ARG AWS_SECRET_ACCESS_KEY
ARG INPUT_JSON_PATH
ARG GATEWAY_STAGE

# Check if .env exists, if it does, copy .env file
# Otherwise, set up environment variable from build arguments
RUN if [ ! -f .env ]; then \
echo "il y passe"; \
fi

RUN if [ -f .env ]; then \
cp .env /app/.env; \
echo "fic exist"; \
Expand Down

0 comments on commit d8e28f1

Please sign in to comment.