Skip to content

Commit

Permalink
add rust & cargo into one layer with the other packages
Browse files Browse the repository at this point in the history
  • Loading branch information
blankdots committed Feb 9, 2021
1 parent 50ad7b7 commit 508ff48
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,15 @@ RUN cd /root/swift_ui/swift_browser_ui_frontend \
FROM python:3.8-alpine3.13 as BACKEND

RUN apk add --update \
&& apk add --no-cache build-base curl-dev linux-headers bash git\
&& apk add --no-cache libressl-dev libffi-dev\
&& apk add --no-cache build-base curl-dev linux-headers bash git \
&& apk add --no-cache libressl-dev libffi-dev rust cargo \
&& rm -rf /var/cache/apk/*

COPY requirements.txt /root/swift_ui/requirements.txt
COPY setup.py /root/swift_ui/setup.py
COPY swift_browser_ui /root/swift_ui/swift_browser_ui
COPY --from=FRONTEND /root/swift_ui/swift_browser_ui_frontend/dist /root/swift_ui/swift_browser_ui_frontend/dist

RUN apk add --no-cache rust cargo \
&& rm -rf /var/cache/apk/*

RUN pip install --upgrade pip && \
pip install -r /root/swift_ui/requirements.txt && \
pip install /root/swift_ui
Expand Down

0 comments on commit 508ff48

Please sign in to comment.