-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
44 lines (38 loc) · 992 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
40
41
42
43
44
# docker buildx build -t blackboard .
# docker run -it blackboard
# Noble Numbat, 24.04 LTS
FROM ubuntu:noble AS base
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt-get install -y \
libcairo2-dev \
libgif-dev \
libgirepository1.0-dev \
libjpeg8-dev \
libpango1.0-dev \
build-essential \
cloc \
cmake \
g++ \
git \
net-tools \
pipx \
pkg-config \
python-is-python3 \
python3-pip \
python3-venv \
sudo \
vim && \
pipx install cookiecutter && \
apt-get clean
WORKDIR /app
COPY . .
RUN mkdir /dojo-secrets
# RUN pipx runpip cookiecutter install -r requirements.txt
RUN touch /dojo-secrets/api-keys.txt && \
useradd --create-home bboard && \
chown -R bboard:bboard /app /dojo-secrets && \
usermod -aG sudo bboard && \
echo "bboard ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
USER bboard
ENTRYPOINT ["bash"]