mirror of
https://github.com/InfiniTimeOrg/InfiniTime.git
synced 2024-12-25 10:41:42 +03:00
Use root for package installation
And forget the chown. sudo can be used if the dependencies ever need to be updated "live"
This commit is contained in:
parent
0880d53a94
commit
cf187d342c
7
docker/.gitpod.Dockerfile
vendored
7
docker/.gitpod.Dockerfile
vendored
@ -1,5 +1,6 @@
|
|||||||
FROM gitpod/workspace-full
|
FROM gitpod/workspace-full
|
||||||
|
|
||||||
|
USER root
|
||||||
ARG DEBIAN_FRONTEND=noninteractive
|
ARG DEBIAN_FRONTEND=noninteractive
|
||||||
RUN apt-get update -qq \
|
RUN apt-get update -qq \
|
||||||
&& apt-get install -y \
|
&& apt-get install -y \
|
||||||
@ -23,8 +24,6 @@ RUN apt-get update -qq \
|
|||||||
# Needs to be installed as root
|
# Needs to be installed as root
|
||||||
RUN pip3 install adafruit-nrfutil
|
RUN pip3 install adafruit-nrfutil
|
||||||
|
|
||||||
RUN sudo chown -R gitpod /opt
|
|
||||||
|
|
||||||
COPY docker/build.sh /opt/
|
COPY docker/build.sh /opt/
|
||||||
# Lets get each in a separate docker layer for better downloads
|
# Lets get each in a separate docker layer for better downloads
|
||||||
# GCC
|
# GCC
|
||||||
@ -35,4 +34,6 @@ RUN bash -c "source /opt/build.sh; GetNrfSdk;"
|
|||||||
RUN bash -c "source /opt/build.sh; GetMcuBoot;"
|
RUN bash -c "source /opt/build.sh; GetMcuBoot;"
|
||||||
|
|
||||||
# Link the default checkout workspace in to the default $SOURCES_DIR
|
# Link the default checkout workspace in to the default $SOURCES_DIR
|
||||||
RUN sudo ln -s /workspace/Pinetime /sources
|
RUN ln -s /workspace/Pinetime /sources
|
||||||
|
|
||||||
|
USER gitpod
|
Loading…
Reference in New Issue
Block a user