Commit dcd05fd9 authored by Johan Gudmundsson's avatar Johan Gudmundsson
Browse files

change docker image

parent 591475b8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -35,7 +35,7 @@ before_script:
  script:
    - docker pull "$CACHE"
    - docker build --build-arg ARCH=$ARCH --build-arg CI_COMMIT_REF_NAME=$CI_COMMIT_REF_NAME --pull --cache-from "$CACHE" -t "$TAG" .
    - docker run -e CI_COMMIT_REF_NAME=$CI_COMMIT_REF_NAME "$TAG" /bin/bash -c 'make install-dev install lint test test-tutorials'
    - docker run -e CI_COMMIT_REF_NAME=$CI_COMMIT_REF_NAME "$TAG"  -c 'make install-dev install lint test test-tutorials'
    - touch /tmp/completed # Used to test that the above commands succeeded
  only:
    - merge_request
+5 −12
Original line number Diff line number Diff line
FROM ubuntu:20.04
FROM python:3.8

ARG ARCH
ARG CI_COMMIT_REF_NAME
ARG DEBIAN_FRONTEND=noninteractive

COPY scripts/install-python.sh .

RUN apt update -q && \
    apt install -yq --no-install-recommends \
      build-essential \
      ca-certificates \
      curl \
      git \
      gnupg \
      libglib2.0-0 && \
    bash install-python.sh && \
    rm -rf install-python.sh /var/lib/apt/lists/*
      git

WORKDIR /borch

ENV LC_ALL="C.UTF-8" \
    LANG="C.UTF-8"

# Install borch
COPY . .
RUN make install
RUN pip install pip==21.1.1 && make install

ENTRYPOINT ["/bin/bash"]