-
Notifications
You must be signed in to change notification settings - Fork 20
/
flowapi.Dockerfile
23 lines (21 loc) · 941 Bytes
/
flowapi.Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
FROM python:3.8-alpine@sha256:166faf3661e2b715e122d8203ce65a4e0f55e1bee11d8f10dc4751a2cecf5b9c
ARG SOURCE_VERSION=0+unknown
ENV SOURCE_VERSION=${SOURCE_VERSION}
ENV SOURCE_TREE=FlowKit-${SOURCE_VERSION}
WORKDIR /${SOURCE_TREE}/flowapi
COPY ./flowapi/Pipfile* ./
RUN apk update && apk add libzmq && apk add --virtual build-dependencies build-base libffi-dev \
gcc wget git musl-dev zeromq-dev openssl-dev cargo && \
pip install --no-cache-dir pipenv==2021.5.29 Cython && pipenv install --clear --deploy && \
apk del build-dependencies
COPY . /${SOURCE_TREE}/
RUN pipenv run pip install --no-deps --no-cache-dir .
ENV QUART_ENV=production
ENV FLOWAPI_PORT=9090
EXPOSE 80
EXPOSE 443
EXPOSE 9090
CMD ["pipenv", "run", "./start.sh"]