forked from GEIGEIGEIST/zmk-config-totem
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
30 lines (23 loc) · 774 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
# syntax=docker/dockerfile:1
ARG zmk_type=dev
ARG zmk_tag=stable
FROM docker.io/zmkfirmware/zmk-${zmk_type}-arm:${zmk_tag}
ARG USERNAME=hamid
ARG USERUID=1000
ARG USERGID=1000
ENV USER_ID=$USERUID
ENV GROUP_ID=$USERGID
ENV USER_NAME=$USERNAME
RUN apt -y update && apt -y install jq
# RUN apt install -y python3-pip
RUN python3 -m pip install remarshal
# Create the user
RUN groupadd --gid $GROUP_ID $USER_NAME \
&& useradd --uid $USER_ID --gid $GROUP_ID -d /home/$USER_NAME -m $USER_NAME
RUN mkdir /.ccache \
&& chown -R ${USER_ID}:${GROUP_ID} /.ccache \
&& mkdir /.cache \
&& chown -R ${USER_ID}:${GROUP_ID} /.cache \
&& ls -la /.cache /.ccache \
&& ls -la /home/$USER_NAME \
&& ls -lad /home/$USER_NAME