Skip to content

Commit

Permalink
add ffi
Browse files Browse the repository at this point in the history
  • Loading branch information
mariusandra committed Aug 13, 2023
1 parent 4b94401 commit 5b781ce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ FROM python:3.9-slim-bullseye
WORKDIR /app

# Install Node.js 18 and build tools
RUN apt-get update && apt-get install -y curl build-essential \
RUN apt-get update && apt-get install -y curl build-essential libffi-dev \
&& curl -sL https://deb.nodesource.com/setup_18.x | bash - \
&& apt-get install -y nodejs

Expand All @@ -30,7 +30,7 @@ RUN npm run build
RUN find . -maxdepth 1 ! -name 'dist' ! -name '.' ! -name '..' -exec rm -rf {} \;

# Cleanup node installations and build tools
RUN apt-get remove -y nodejs build-essential \
RUN apt-get remove -y nodejs build-essential libffi-dev \
&& apt-get autoremove -y \
&& apt-get clean \
&& rm -rf /app/frontend/node_modules \
Expand Down
4 changes: 2 additions & 2 deletions device/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ WORKDIR /srv/frameos
COPY . .

# Install build-essential for native extensions
RUN apt-get update && apt-get install -y build-essential \
RUN apt-get update && apt-get install -y build-essential libffi-dev \
&& pip3 install --no-cache-dir -r requirements.txt \
# Cleanup to reduce image size
&& apt-get remove -y build-essential \
&& apt-get remove -y build-essential libffi-dev \
&& apt-get autoremove -y \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
Expand Down

0 comments on commit 5b781ce

Please sign in to comment.