-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
38 lines (35 loc) · 893 Bytes
/
Dockerfile
File metadata and controls
38 lines (35 loc) · 893 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
26
27
28
29
30
31
32
33
34
35
36
37
38
FROM ubuntu:20.04
ENV TZ=Europe DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
tzdata \
build-essential \
checkinstall \
libreadline-gplv2-dev \
libncursesw5-dev \
libssl-dev \
libsqlite3-dev \
tk-dev \
libgdbm-dev \
libc6-dev \
libbz2-dev \
software-properties-common \
curl \
# Install python 3.11
&& apt-get update \
&& add-apt-repository ppa:deadsnakes/ppa \
&& apt-get install -y --no-install-recommends \
python3.11
RUN curl -sS https://bootstrap.pypa.io/get-pip.py | python3.11
RUN mkdir -p /app/
COPY requirements.txt /app
RUN pip install -r /app/requirements.txt
RUN pip install mypy pandas-stubs
COPY ola/ /app/ola/
COPY stubs/ /app/stubs/
COPY *.py /app/
WORKDIR /app/
RUN ls -la /app
RUN pytest
RUN black --check *.py
RUN mypy --check-untyped-defs *.py