-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathContainerfile.bulk
54 lines (47 loc) · 1.61 KB
/
Containerfile.bulk
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# SPDX-License-Identifier: FSFAP
# Copyright (C) 2019-2023 Andrew Rechnitzer
# Copyright (C) 2019-2023 Colin B. Macdonald
# Copyright (C) 2021 Peter Lee
# Copyright (C) 2023 Julian Lapenna
#
# Copying and distribution of this file, with or without modification,
# are permitted in any medium without royalty provided the copyright
# notice and this notice are preserved. This file is offered as-is,
# without any warranty.
FROM ubuntu:22.04
RUN apt-get -y update && \
DEBIAN_FRONTEND=noninteractive apt-get -y install tzdata && \
apt-get --no-install-recommends -y install \
cmake make g++ \
imagemagick \
openssl \
dvipng latexmk texlive-latex-extra texlive-fonts-recommended texlive-pictures \
libpango-1.0-0 libpangocairo-1.0-0 \
file \
python3 \
python3-dev \
python3-pip \
python3-setuptools \
python3-wheel \
python3-pytest \
python3-magic && \
apt-get -yq autoclean
# file-magic: https://gitlab.com/plom/plom/-/issues/1570
COPY requirements.txt /src/
WORKDIR /src
# pip from 22.04 is too old for pure pyproject.toml?
RUN pip install -U --no-cache-dir pip
RUN pip install --no-cache-dir -r requirements.txt
# Because source includes the PyQt client, we need minimal deps for Qt.
# For example, to install PyQt and run tests
RUN apt-get -y update && \
apt-get --no-install-recommends -y install libglib2.0-0 libgl1-mesa-glx \
libegl1 libxkbcommon0 libdbus-1-3 && \
apt-get -yq autoclean
COPY . /src
WORKDIR /src
RUN pip install --no-cache-dir .
EXPOSE 41984
RUN mkdir /exam
WORKDIR /exam
CMD ["plom-demo"]