summaryrefslogtreecommitdiff
path: root/docker
diff options
context:
space:
mode:
authorJoe Eaves <jinux@alluha.net>2021-01-05 00:26:27 +0000
committerJoe Eaves <joe.eaves@shadowacre.ltd>2021-01-05 00:34:15 +0000
commitcf187d342c4c16c6578e3244b164e649d588e45c (patch)
treef9a66bac46cbf32f99d38c8f29379fcfefb85347 /docker
parent0880d53a941d59605050f54e43a8ab6258247eaf (diff)
Use root for package installation
And forget the chown. sudo can be used if the dependencies ever need to be updated "live"
Diffstat (limited to 'docker')
-rw-r--r--docker/.gitpod.Dockerfile7
1 files changed, 4 insertions, 3 deletions
diff --git a/docker/.gitpod.Dockerfile b/docker/.gitpod.Dockerfile
index ac7992e5..71bf479b 100644
--- a/docker/.gitpod.Dockerfile
+++ b/docker/.gitpod.Dockerfile
@@ -1,5 +1,6 @@
FROM gitpod/workspace-full
+USER root
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update -qq \
&& apt-get install -y \
@@ -23,8 +24,6 @@ RUN apt-get update -qq \
# Needs to be installed as root
RUN pip3 install adafruit-nrfutil
-RUN sudo chown -R gitpod /opt
-
COPY docker/build.sh /opt/
# Lets get each in a separate docker layer for better downloads
# GCC
@@ -35,4 +34,6 @@ RUN bash -c "source /opt/build.sh; GetNrfSdk;"
RUN bash -c "source /opt/build.sh; GetMcuBoot;"
# Link the default checkout workspace in to the default $SOURCES_DIR
-RUN sudo ln -s /workspace/Pinetime /sources \ No newline at end of file
+RUN ln -s /workspace/Pinetime /sources
+
+USER gitpod \ No newline at end of file