-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (20 loc) · 804 Bytes
/
Dockerfile
File metadata and controls
25 lines (20 loc) · 804 Bytes
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
FROM python:3.8-alpine3.10
WORKDIR /src
COPY . /src
RUN python3 setup.py sdist bdist_wheel
FROM python:3.8-alpine3.10
LABEL maintainer="Canyan Engineering Team <team@canyan.io>"
ENV VERSION 0.1.1
COPY ./scripts/wait-for /usr/bin/wait-for
RUN chmod +x /usr/bin/wait-for
COPY --from=0 /src/dist/rating_engine-0.1.1-py3-none-any.whl /tmp/rating_engine-0.1.1-py3-none-any.whl
RUN true && \
apk add --no-cache --virtual .build-deps gcc python3-dev musl-dev libffi-dev make && \
pip install /tmp/rating_engine-0.1.1-py3-none-any.whl && \
apk del --no-cache .build-deps && \
rm /tmp/rating_engine-0.1.1-py3-none-any.whl && \
rm -fr /root/.cache
ADD docker-entrypoint.sh /docker-entrypoint.sh
RUN chmod +x /docker-entrypoint.sh
ENTRYPOINT ["/docker-entrypoint.sh"]
CMD ["rating-engine"]