Skip to content

Commit

Permalink
Fix dev docker container
Browse files Browse the repository at this point in the history
Looks like we need to apt-update before installing apt packages because
we deleted all the lists in Dockerfile.
  • Loading branch information
feelepxyz committed Apr 15, 2021
1 parent 025150c commit 776f4cf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Dockerfile.development
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,17 @@ FROM dependabot/dependabot-core

# Temporarily switch to root user in order to install packages
USER root
RUN apt-get install -y vim strace ltrace gdb
RUN apt-get update \
&& apt-get install -y vim strace ltrace gdb \
&& rm -rf /var/lib/apt/lists/*
USER dependabot

RUN git config --global user.name dependabot-ci \
&& git config --global user.email no-reply@github.com
RUN curl -L -o ~/.vimrc https://github.com/hmarr/dotfiles/raw/main/vimrc-vanilla.vim && \
echo 'export PS1="[dependabot-core-dev] \w \[$(tput setaf 4)\]$ \[$(tput sgr 0)\]"' >> ~/.bashrc

ARG CODE_DIR=/home/dependabot/dependabot-core
ARG CODE_DIR=${HOME}/dependabot-core

COPY --chown=dependabot:dependabot common/Gemfile common/dependabot-common.gemspec ${CODE_DIR}/common/
COPY --chown=dependabot:dependabot common/lib/dependabot/version.rb ${CODE_DIR}/common/lib/dependabot/
Expand Down

0 comments on commit 776f4cf

Please sign in to comment.