-
-
Notifications
You must be signed in to change notification settings - Fork 51
/
Dockerfile
35 lines (28 loc) · 895 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
31
32
33
34
35
FROM python:3.7.3-slim
LABEL name="Guillotina" \
description="The Python AsyncIO REST API Framework" \
maintainer="Plone Community"
ENV LANG C.UTF-8
ENV LANGUAGE C.UTF-8
ENV LC_ALL C.UTF-8
# Install Python Setuptools
# hadolint ignore=DL3008
RUN apt-get update -y && \
apt-get install -y --no-install-recommends \
locales git-core gcc g++ netcat libxml2-dev \
libxslt-dev libz-dev python3-dev \
&& rm -rf /var/lib/apt/lists/*
RUN mkdir /app
COPY requirements.txt /requirements.txt
COPY VERSION /VERSION
# Install with pip
# hadolint ignore=DL3013
RUN pip install --upgrade "pip>=19.3"
RUN pip install --upgrade orjson==3.4.6
RUN pip install --upgrade Cython==0.29.13
RUN pip install --upgrade uvloop
RUN pip install -r /requirements.txt
COPY . /app
# hadolint ignore=DL3013
RUN pip install /app
# RUN pip install guillotina==$(cat VERSION) || pip install guillotina