diff --git a/Dockerfile b/Dockerfile index de00291..318a73f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,6 +5,9 @@ FROM python:3.11.8-slim-bullseye # Allow statements and log messages to immediately appear in the logs ENV PYTHONUNBUFFERED True +# Don't create .pyc files +ENV PYTHONDONTWRITEBYTECODE True + # Put our application on the PYTHONPATH ENV PYTHONPATH /app @@ -13,9 +16,6 @@ ENV PYTHONPATH /app # test dependencies. ARG DEVEL=no -# Copy local code to the container image. -WORKDIR /app - # Install System level requirements, this is done before everything else # because these are rarely ever going to change. RUN set -x \ @@ -27,15 +27,17 @@ RUN set -x \ && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* # Install pycdc and pycdas... -RUN git clone "https://github.com/zrax/pycdc.git" - -WORKDIR ./pycdc -RUN cmake . -RUN cmake --build . --config release -RUN mv ./pycdc /usr/local/bin -RUN mv ./pycdas /usr/local/bin -RUN rm -rf ./pycdc +WORKDIR /tmp +RUN git clone "https://github.com/zrax/pycdc.git" && \ + cd pycdc && \ + cmake . && \ + cmake --build . --config release && \ + mv ./pycdc /usr/local/bin && \ + mv ./pycdas /usr/local/bin && \ + cd .. && rm -rf ./pycdc +# Copy local code to the container image. +WORKDIR /app # Copy in requirements files COPY ./requirements ./requirements diff --git a/bin/reformat b/bin/reformat index 4849217..edd92a6 100755 --- a/bin/reformat +++ b/bin/reformat @@ -10,5 +10,5 @@ export LANG="${ENCODING:-en_US.UTF-8}" # Print all the following commands set -x -python -m isort inspector/ -python -m black inspector/ +python -m isort inspector/ tests/ +python -m black inspector/ tests/ diff --git a/docker-compose.yml b/docker-compose.yml index c5abf75..1bdfa38 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,4 +1,3 @@ -version: "3.9" services: #db: # image: postgres:10.1