-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (24 loc) · 794 Bytes
/
Dockerfile
File metadata and controls
31 lines (24 loc) · 794 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
FROM ubuntu:noble
LABEL maintainer="arjan.verkerk@nelen-schuurmans.nl"
RUN apt update
RUN apt install --yes curl
RUN apt install --yes pipx
RUN apt install --yes unzip
RUN apt install --yes locales
RUN apt install --yes gdal-bin
RUN apt install --yes python3-gdal
RUN locale-gen en_US.UTF-8
ENV LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_ALL=en_US.UTF-8
RUN userdel -r ubuntu
ARG uid=1000
ARG gid=1000
RUN groupadd -g $gid nens && useradd -lm -u $uid -g $gid nens
# so that users can use run the commands directly
RUN ln -s /home/nens/.local/bin/bag2tif /usr/local/bin/
RUN ln -s /home/nens/.local/bin/roundd /usr/local/bin/
VOLUME /code
WORKDIR /code
USER nens
COPY --chown=nens . .
RUN echo "export PATH=$PATH:~/.local/bin" >> ~/.bashrc
RUN pipx install --system-site-packages --editable .