forked from nameko/nameko-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
30 lines (18 loc) · 757 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
FROM python:3.7-slim-stretch as base
RUN apt-get update && \
apt-get install --yes curl netcat
RUN pip3 install --upgrade pip
RUN pip3 install virtualenv
RUN virtualenv -p python3 /appenv
ENV PATH=/appenv/bin:$PATH
RUN groupadd -r nameko && useradd -r -g nameko nameko
RUN mkdir /var/nameko/ && chown -R nameko:nameko /var/nameko/
# ------------------------------------------------------------------------
FROM nameko-example-base as builder
RUN apt-get update && \
apt-get install --yes build-essential autoconf libtool pkg-config \
libgflags-dev libgtest-dev clang libc++-dev automake git libpq-dev
RUN pip install auditwheel
COPY . /application
ENV PIP_WHEEL_DIR=/application/wheelhouse
ENV PIP_FIND_LINKS=/application/wheelhouse