Skip to content

Commit e85aa7d

Browse files
Fix dockerfile of seat-adjuster example (#19)
Signed-off-by: Dennis Meister <[email protected]> Signed-off-by: Dennis Meister <[email protected]>
1 parent 4799a38 commit e85aa7d

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

examples/seat-adjuster/Dockerfile

+10-10
Original file line numberDiff line numberDiff line change
@@ -19,36 +19,36 @@ FROM --platform=$TARGETPLATFORM python:3.9-slim-bullseye as builder
1919

2020
RUN apt-get update && apt-get install -y binutils
2121

22-
COPY ./src /src
22+
COPY ./app /app
2323

2424
# Remove this installation for Arm64 once staticx has a prebuilt wheel for Arm64
2525
RUN /bin/bash -c 'set -ex && \
2626
ARCH=`uname -m` && \
2727
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; \
3131
fi'
3232

3333
RUN apt-get install -y git
3434
RUN pip3 install --no-cache-dir pyinstaller \
3535
&& pip3 install --no-cache-dir patchelf \
3636
&& 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
3939

40-
WORKDIR /src
40+
WORKDIR /app
4141

42-
RUN pyinstaller --clean -F -s VehicleApp/main.py
42+
RUN pyinstaller --clean -F -s src/main.py
4343

44-
WORKDIR /src/dist
44+
WORKDIR /app/dist
4545

4646
RUN staticx main run-exe
4747

4848
# Runner stage, to copy the executable
4949
FROM scratch
5050

51-
COPY --from=builder ./src/dist/run-exe /dist/
51+
COPY --from=builder ./app/dist/run-exe /dist/
5252

5353
WORKDIR /tmp
5454
WORKDIR /dist

0 commit comments

Comments
 (0)