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

Logs and tmp dir creation

parent 95de0334
No related branches found
No related tags found
2 merge requests!3Launch script,!2Refactoring : all scripts in Dockerfiles/python/scripts
Pipeline #43934 passed
...@@ -35,17 +35,16 @@ RUN python3 -m pip install --no-cache-dir --upgrade pip \ ...@@ -35,17 +35,16 @@ RUN python3 -m pip install --no-cache-dir --upgrade pip \
RUN addgroup calquluser && \ RUN addgroup calquluser && \
useradd calquluser -g calquluser --home /app && \ useradd calquluser -g calquluser --home /app && \
mkdir -p /app && \ mkdir -p /app && \
chown calquluser:calquluser /app mkdir -p /app/logs && \
mkdir -p /app/tmp && \
chown -R calquluser:calquluser /app
WORKDIR /app WORKDIR /app
# COPY --chown=calquluser:calquluser / /app
USER calquluser USER calquluser
COPY --chown=calquluser:calquluser ./scripts/*.py ./ COPY --chown=calquluser:calquluser ./scripts/*.py ./
COPY ./sql ./ COPY --chown=calquluser:calquluser ./sql ./
RUN pwd && ls -la .
# Launch calculation # Launch calculation
# CMD [ "python3", "./hello-world.py" ] # CMD [ "python3", "./hello-world.py" ]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment