Install build-essential after installing other deps

This commit is contained in:
Peter Squicciarini 2019-02-15 12:02:00 -05:00
parent 868ee75791
commit 2a523c1b3a
No known key found for this signature in database
GPG Key ID: EB67E153FD9B5F44

View File

@ -1,13 +1,13 @@
FROM ubuntu:trusty FROM ubuntu:trusty
# we want bash # we want bash as shell
SHELL ["/bin/bash", "-c"] SHELL ["/bin/bash", "-c"]
WORKDIR "/home" WORKDIR "/home"
# some basic tools needed # some basic tools needed
RUN sudo apt-get update RUN sudo apt-get update
RUN sudo apt-get install -y curl git build-essential RUN sudo apt-get install -y curl git
# get vscodium repo # get vscodium repo
RUN ["git", "clone", "https://github.com/vscodium/vscodium.git"] RUN ["git", "clone", "https://github.com/vscodium/vscodium.git"]
@ -26,11 +26,10 @@ RUN mkdir -p /usr/local/nvm \
RUN source $NVM_DIR/nvm.sh \ RUN source $NVM_DIR/nvm.sh \
&& curl -o- -L https://yarnpkg.com/install.sh | bash && curl -o- -L https://yarnpkg.com/install.sh | bash
# install deps # run install deps
RUN sudo dpkg --add-architecture i386 RUN export BUILDARCH=ia32 && ./install_deps.sh
RUN sudo apt-get update # apt removes build-essential after this for some reason
RUN sudo apt-get install -y fakeroot rpm jq RUN sudo apt-get install -y build-essential
RUN sudo apt-get install -y libx11-dev:i386 libxkbfile-dev:i386 libsecret-1-dev:i386 libc6-dev-i386 gcc-multilib g++-multilib
# set flags # set flags
ENV CFLAGS=-m32 ENV CFLAGS=-m32