File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- FROM pypy :3-slim
1+ FROM python :3-alpine as base
22
3- RUN apt-get update
4- RUN apt-get -y install g++
5- RUN apt-get -y install libzmq3-dev
3+ WORKDIR /svc
64
7- COPY . /sqlite_rx
8- WORKDIR /sqlite_rx
5+ RUN apk update && apk add build-base libzmq musl-dev zeromq-dev
96
10- RUN pypy3 -m pip install -r requirements.txt
11- RUN pypy3 setup.py install
7+ RUN pip install --upgrade pip
8+ RUN pip install Cython
9+ RUN pip install wheel && pip wheel --wheel-dir=/svc/wheels sqlite_rx
10+
11+
12+ FROM python:3-alpine
13+ RUN apk update && apk add libzmq
14+
15+ COPY --from=base /svc /svc
16+ WORKDIR /svc
17+
18+ RUN pip install --upgrade pip
19+ RUN pip install --no-index --find-links=/svc/wheels sqlite_rx
Original file line number Diff line number Diff line change 1+ FROM python:3-alpine as base
2+
3+ WORKDIR /svc
4+
5+ RUN apk update && apk add build-base libzmq musl-dev zeromq-dev
6+
7+ RUN pip install --upgrade pip
8+ RUN pip install Cython
9+ RUN pip install wheel && pip wheel --wheel-dir=/svc/wheels sqlite_rx
10+
11+
12+ FROM python:3-alpine
13+ RUN apk update && apk add libzmq
14+
15+ COPY --from=base /svc /svc
16+ WORKDIR /svc
17+
18+ RUN pip install --upgrade pip
19+ RUN pip install --no-index --find-links=/svc/wheels sqlite_rx
20+
Original file line number Diff line number Diff line change @@ -2,9 +2,6 @@ FROM alpine:edge
22
33RUN apk update && apk add build-base libzmq musl-dev python3 python3-dev zeromq-dev py-pip
44
5- COPY . /sqlite_rx
6- WORKDIR /sqlite_rx
7-
85RUN pip install -U Cython
9- RUN pip install -r requirements.txt
10- RUN pip install -e .
6+ RUN pip install -U sqlite_rx
7+ RUN apk del build-base musl-dev python3-dev zeromq-dev
You can’t perform that action at this time.
0 commit comments