File: Dockerfile

package info (click to toggle)
pyenv 2.6.8-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 8,496 kB
  • sloc: sh: 4,914; python: 410; makefile: 161; ansic: 60
file content (25 lines) | stat: -rw-r--r-- 679 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
ARG BASH

FROM alpine/git:v2.30.0 as bats
ARG BATS_VERSION
  RUN git clone https://github.com/bats-core/bats-core.git /root/bats-core \
        && cd /root/bats-core \
        && git checkout "${BATS_VERSION}"

FROM bash:$BASH
  # Gnu tools
  RUN if [[ "${GNU:-}" == True ]];then \
    apk add sed coreutils findutils \
  ;fi
  # Bats
  RUN apk add --update parallel ncurses git \
        && mkdir -p ~/.parallel \
        && touch ~/.parallel/will-cite
  COPY --from=bats /root/bats-core /root/bats-core
  RUN /root/bats-core/install.sh "/usr/local"
  # Clean
  RUN rm -rf /var/cache/apk/*
  # Setup
  RUN echo 'source /etc/profile' >> ~/.bashrc
  WORKDIR /code/
  CMD ["bash"]