-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
35 lines (26 loc) · 827 Bytes
/
Dockerfile
File metadata and controls
35 lines (26 loc) · 827 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
FROM python:3.10-slim
RUN apt update
RUN apt upgrade -y
ENV DEBIAN_FRONTEND=noninteractive
RUN apt install -y \
git graphviz tzdata locales sudo
RUN echo "Europe/Oslo" > /etc/timezone
RUN dpkg-reconfigure -f noninteractive tzdata
ENV LANG en_GB.UTF-8
ENV LANGUAGE en_GB:en
ENV SHELL /bin/bash
RUN locale-gen $LANG
RUN dpkg-reconfigure locales
RUN useradd -ms /bin/bash docker
RUN echo "docker ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
USER docker
WORKDIR /home/docker
RUN git config --global user.email ""
RUN git config --global user.name "Damast CI User"
ENV PATH=/home/docker/.local/bin:$PATH
RUN git clone https://github.com/simula/damast
RUN pip install -e "./damast[test,dev]"
RUN damast --help
# Use login shell (-l) in case we update .bashrc
SHELL ["/bin/bash", "-l", "-c"]
ENTRYPOINT ["/bin/bash"]