@@ -5,6 +5,9 @@ FROM python:3.11.8-slim-bullseye
5
5
# Allow statements and log messages to immediately appear in the logs
6
6
ENV PYTHONUNBUFFERED True
7
7
8
+ # Don't create .pyc files
9
+ ENV PYTHONDONTWRITEBYTECODE True
10
+
8
11
# Put our application on the PYTHONPATH
9
12
ENV PYTHONPATH /app
10
13
@@ -13,9 +16,6 @@ ENV PYTHONPATH /app
13
16
# test dependencies.
14
17
ARG DEVEL=no
15
18
16
- # Copy local code to the container image.
17
- WORKDIR /app
18
-
19
19
# Install System level requirements, this is done before everything else
20
20
# because these are rarely ever going to change.
21
21
RUN set -x \
@@ -27,15 +27,17 @@ RUN set -x \
27
27
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
28
28
29
29
# Install pycdc and pycdas...
30
- RUN git clone "https://github.com/zrax/pycdc.git"
31
-
32
- WORKDIR ./ pycdc
33
- RUN cmake .
34
- RUN cmake --build . --config release
35
- RUN mv ./pycdc /usr/local/bin
36
- RUN mv ./pycdas /usr/local/bin
37
- RUN rm -rf ./pycdc
30
+ WORKDIR /tmp
31
+ RUN git clone "https://github.com/zrax/pycdc.git" && \
32
+ cd pycdc && \
33
+ cmake . && \
34
+ cmake --build . --config release && \
35
+ mv ./pycdc /usr/local/bin && \
36
+ mv ./pycdas /usr/local/bin && \
37
+ cd .. && rm -rf ./pycdc
38
38
39
+ # Copy local code to the container image.
40
+ WORKDIR /app
39
41
# Copy in requirements files
40
42
COPY ./requirements ./requirements
41
43
0 commit comments