-
Notifications
You must be signed in to change notification settings - Fork 66
/
Dockerfile
36 lines (30 loc) · 1.16 KB
/
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
36
FROM ubuntu:20.04
MAINTAINER naverlabs "[email protected]"
# set local (see more on https://leimao.github.io/blog/Docker-Locale/)
ENV LANG C.UTF-8
ENV LC_ALL C.UTF-8
# Set correct environment variables.
ENV DEBIAN_FRONTEND noninteractive
ARG MAKE_OPTIONS="-j8"
ARG SOURCE_PREFIX="/opt/src"
# Get dependencies
RUN apt-get update && \
apt-get install -y --no-install-recommends \
git wget curl pandoc asciidoctor \
python3 python3-pip python3-dev && \
rm -rf /var/lib/apt/lists/*
# make sure pip 3 is >= 20.0 to enable use-feature=2020-resolver
RUN python3 -m pip install --upgrade pip
RUN python3 -m pip install --upgrade setuptools wheel twine
########################################################################################################################
# install kapture env
ADD . ${SOURCE_PREFIX}/kapture
WORKDIR ${SOURCE_PREFIX}/kapture
RUN git submodule update --init --recursive
RUN python3 -m pip install -r requirements.txt
RUN python3 -m pip install .
### FINALIZE ###################################################################
# save space: purge apt-get
RUN rm -rf /var/lib/apt/lists/*
USER root
WORKDIR ${SOURCE_PREFIX}/