-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
39 lines (29 loc) · 916 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
38
39
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 apt install -y \
libtk8.6
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://gitlab.com/simula-srl/damast-ais-showcase
RUN pip install -e "damast-ais-showcase"
RUN which damast-ais-showcase
EXPOSE 8888/tcp
# Use login shell (-l) in case we update .bashrc
SHELL ["/bin/bash", "-l", "-c"]
ENTRYPOINT ["/bin/bash"]