-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathDockerfile
37 lines (27 loc) · 1018 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
36
37
# Stage 1: Build dependencies
FROM python:3.9 AS builder
WORKDIR /usr/src/app
COPY requirements.txt requirements-dev.txt ./
RUN pip install --upgrade pip && \
pip install --no-cache-dir -r requirements-dev.txt
FROM python:3.9
RUN apt update && \
apt install -y \
pandoc \
texlive-latex-base \
texlive-fonts-recommended \
texlive-fonts-extra \
texlive-latex-extra \
poppler-utils && \
apt clean && \
rm -rf /var/lib/apt/lists/*
COPY mpqp_scripts/awscli_installation/linux_awscli_install.sh ./
RUN chmod +x linux_awscli_install.sh && ./linux_awscli_install.sh
WORKDIR /usr/src/app/mpqp
COPY --from=builder /usr/local/lib/python3.9/site-packages /usr/local/lib/python3.9/site-packages
COPY .. /usr/src/app/mpqp/
COPY requirements.txt requirements-dev.txt /usr/src/app/
RUN pip install --upgrade pip && \
pip install --no-cache-dir -r /usr/src/app/requirements.txt && \
pip install .
RUN echo "alias pytest='python -m pytest'" >> ~/.bashrc