-
Notifications
You must be signed in to change notification settings - Fork 50
/
Dockerfile
40 lines (32 loc) · 1.08 KB
/
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
FROM fluxrm/testenv:focal
LABEL maintainer="Vanessasaurus <@vsoch>"
# Match the default user id for a single system so we aren't root
ARG USERNAME=vscode
ARG USER_UID=1000
ARG USER_GID=1000
ENV USERNAME=${USERNAME}
ENV USER_UID=${USER_UID}
ENV USER_GID=${USER_GID}
# Pip not provided in this version
RUN apt-get update
COPY scripts/requirements-dev.txt /requirements.txt
# For easier Python development.
RUN python3 -m pip install IPython && \
python3 -m pip install -r /requirements.txt
# Assuming installing to /usr/local
ENV LD_LIBRARY_PATH=/usr/local/lib
# Assuming installing to /usr/local
ENV LD_LIBRARY_PATH=/usr/local/lib
# extra interactive utilities and compilation_database generation
RUN apt-get update \
&& apt-get -qq install -y --no-install-recommends \
bear \
fd-find \
gdb \
less \
ripgrep
# Add the group and user that match our ids
RUN groupadd -g ${USER_GID} ${USERNAME} && \
adduser --disabled-password --uid ${USER_UID} --gid ${USER_GID} --gecos "" ${USERNAME} && \
echo "${USERNAME} ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers
USER $USERNAME