File tree 1 file changed +10
-10
lines changed
1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -19,36 +19,36 @@ FROM --platform=$TARGETPLATFORM python:3.9-slim-bullseye as builder
19
19
20
20
RUN apt-get update && apt-get install -y binutils
21
21
22
- COPY ./src /src
22
+ COPY ./app /app
23
23
24
24
# Remove this installation for Arm64 once staticx has a prebuilt wheel for Arm64
25
25
RUN /bin/bash -c 'set -ex && \
26
26
ARCH=`uname -m` && \
27
27
if [ "$ARCH" == "aarch64" ]; then \
28
- echo "ARM64" && \
29
- apt-get install -y gcc && \
30
- pip3 install --no-cache-dir scons; \
28
+ echo "ARM64" && \
29
+ apt-get install -y gcc && \
30
+ pip3 install --no-cache-dir scons; \
31
31
fi'
32
32
33
33
RUN apt-get install -y git
34
34
RUN pip3 install --no-cache-dir pyinstaller \
35
35
&& pip3 install --no-cache-dir patchelf \
36
36
&& pip3 install --no-cache-dir staticx \
37
- && pip3 install --no-cache-dir -r src /requirements.txt \
38
- && pip3 install --no-cache-dir -r src /requirements-links.txt
37
+ && pip3 install --no-cache-dir -r ./app /requirements.txt \
38
+ && pip3 install --no-cache-dir -r ./app /requirements-links.txt
39
39
40
- WORKDIR /src
40
+ WORKDIR /app
41
41
42
- RUN pyinstaller --clean -F -s VehicleApp /main.py
42
+ RUN pyinstaller --clean -F -s src /main.py
43
43
44
- WORKDIR /src /dist
44
+ WORKDIR /app /dist
45
45
46
46
RUN staticx main run-exe
47
47
48
48
# Runner stage, to copy the executable
49
49
FROM scratch
50
50
51
- COPY --from=builder ./src /dist/run-exe /dist/
51
+ COPY --from=builder ./app /dist/run-exe /dist/
52
52
53
53
WORKDIR /tmp
54
54
WORKDIR /dist
You can’t perform that action at this time.
0 commit comments