Skip to content

Commit

Permalink
Lint Docker files
Browse files Browse the repository at this point in the history
  • Loading branch information
Tony Smith committed Jul 24, 2024
1 parent 3839aa1 commit 4c8e879
Showing 2 changed files with 7 additions and 6 deletions.
11 changes: 6 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -2,20 +2,21 @@ FROM ubuntu:20.04 AS builder
ARG USERNAME=mvisor
ARG UID=1000
ARG GID=1000
RUN groupadd -g $GID -o $USERNAME
RUN useradd -m -u $UID -g $GID -o -s /bin/bash $USERNAME
RUN groupadd -g ${GID} -o ${USERNAME}
RUN useradd -m -u ${UID} -g ${GID} -o -s /bin/bash ${USERNAME}

# Dependencies for elf generation
RUN apt-get update -yqq && apt-get install -yqq apt-utils
RUN apt-get update -yqq && apt-get install -yqq apt-utils && apt-get clean
RUN DEBIAN_FRONTEND=noninteractive apt-get install -o APT::Immediate-Configure=0 -yqq \
cmake gcc-arm-none-eabi jq curl ca-certificates gnupg
cmake gcc-arm-none-eabi jq curl ca-certificates gnupg \
&& apt-get clean

# Twilio CLI for bundle generation via npm
# as a binary debian package is not yet available for Apple Silicon
RUN mkdir -p /etc/apt/keyrings
RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list
RUN apt-get update -yqq && DEBIAN_FRONTEND=noninteractive apt-get install -yqq nodejs
RUN apt-get update -yqq && DEBIAN_FRONTEND=noninteractive apt-get install -yqq nodejs && apt-get clean
RUN npm install -g twilio-cli

WORKDIR /home/${USERNAME}/
2 changes: 1 addition & 1 deletion docker-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@ set -e

cd $(dirname $0)

[ -d build ] && rm -rf build
rm -rf build

if [[ -n "${BUILD_ONLY}" ]]; then
# Build only

0 comments on commit 4c8e879

Please sign in to comment.