Skip to content
Snippets Groups Projects
Commit 9dd88bd3 authored by Pierre-Gilles Levallois's avatar Pierre-Gilles Levallois
Browse files

change order

parent b1842c67
Branches
Tags
2 merge requests!3Launch script,!2Refactoring : all scripts in Dockerfiles/python/scripts
Pipeline #43370 failed
......@@ -5,12 +5,6 @@ WORKDIR /usr/src/app
# Get the NAMESPACE_ENV value. This should be 'd01', 'r01' or 'p01'
# ARG NAMESPACE_ENV=""
COPY ./scripts/requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
COPY ./scripts ./
COPY ./sql ./
# Remplacing values in file
RUN cp .env.example .env.$NAMESPACE_ENV && \
sed -i "s/__POSTGRES_DB__/$POSTGRES_DB/g" .env.$NAMESPACE_ENV && \
......@@ -24,4 +18,12 @@ RUN cat .env.$NAMESPACE_ENV
COPY .env.$NAMESPACE_ENV .
COPY ./scripts/requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
COPY ./scripts ./
COPY ./sql ./
RUN ls -l .
CMD [ "python", "./scripts/hello-world.py" ]
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment