Skip to content

Commit

Permalink
oneone
Browse files Browse the repository at this point in the history
  • Loading branch information
AhmedElkazzaz committed Jun 24, 2024
1 parent 5725b4f commit 2d2e22f
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions app/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# syntax=docker/dockerfile:1.2

# Build stage, to create the executable
FROM --platform=$TARGETPLATFORM ghcr.io/eclipse-velocitas/devcontainer-base-images/python:latest as builder
FROM --platform=$TARGETPLATFORM ghcr.io/eclipse-velocitas/devcontainer-base-images/python:v0.3 as builder
ARG TARGETARCH

RUN apt-get update && apt-get install -y python3-dev
Expand All @@ -40,11 +40,11 @@ RUN pip3 install --no-cache-dir pyinstaller==5.9.0 \

WORKDIR /workspace

RUN velocitas init -v
RUN velocitas init

WORKDIR /workspace/app

RUN pyinstaller --clean -F -s src/main.py
RUN pyinstaller --clean -F -s --paths=src src/main.py

WORKDIR /workspace/app/dist

Expand All @@ -55,15 +55,11 @@ FROM scratch as runner

COPY --from=builder ./workspace/app/dist/run-exe /app


WORKDIR /tmp



ENV PATH="/:$PATH"

LABEL org.opencontainers.image.source="https://github.com/eclipse-velocitas/vehicle-app-python-template"



CMD ["/app"]
CMD ["./run-exe"]

0 comments on commit 2d2e22f

Please sign in to comment.