-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathDockerfile
More file actions
42 lines (35 loc) · 979 Bytes
/
Dockerfile
File metadata and controls
42 lines (35 loc) · 979 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
39
40
41
42
FROM ubuntu:22.04
ENV DEBIAN_FRONTEND=noninteractive
ENV PATH=/code:$PATH
ENV PYTHONPATH=/code
WORKDIR /code
RUN apt-get update && apt-get install -y software-properties-common && \
add-apt-repository ppa:deadsnakes/ppa && \
add-apt-repository ppa:ubuntugis/ppa && \
apt-get update && \
apt-get install -y \
binutils \
ffmpeg \
gdal-bin \
git \
libgdal-dev \
libproj-dev \
mediainfo \
pacpl \
python3.11 \
python3.11-dev \
python3.11-venv \
python3.11-distutils \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
ENV VIRTUAL_ENV=/pythonenv/roundware-venv
RUN mkdir -p /pythonenv/ && \
python3.11 -m venv $VIRTUAL_ENV
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
RUN python3 -m pip install --no-cache-dir pip setuptools --upgrade
COPY pyproject.toml .
COPY scripts/ ./scripts
COPY roundware/ ./roundware
RUN python3 -m pip install .
RUN python3 -m roundware.manage collectstatic --noinput
COPY .coveragerc .