Skip to content
This repository was archived by the owner on Aug 4, 2021. It is now read-only.

Commit feeeea1

Browse files
committed
add rust and cargo into one layer
1 parent 640a231 commit feeeea1

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

Dockerfile

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
11
FROM python:3.8-alpine3.13 as BACKEND
22

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

88
COPY requirements.txt /root/swift_sharing/requirements.txt
99
COPY setup.py /root/swift_sharing/setup.py
1010
COPY swift_x_account_sharing /root/swift_sharing/swift_x_account_sharing
1111

12-
RUN apk add --no-cache rust cargo \
13-
&& rm -rf /var/cache/apk/*
14-
1512
RUN pip install --upgrade pip\
1613
&& pip install -r /root/swift_sharing/requirements.txt \
1714
&& pip install /root/swift_sharing

0 commit comments

Comments
 (0)