File: Dockerfile

package info (click to toggle)
python-awscurl 0.36-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 260 kB
  • sloc: python: 967; sh: 90; makefile: 18
file content (38 lines) | stat: -rw-r--r-- 1,199 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
26
27
28
29
30
31
32
33
34
35
36
37
38
FROM alpine

# RUN echo 'tzdata tzdata/Areas select Europe' | debconf-set-selections && \
#     echo 'tzdata tzdata/Zones/Europe select Paris' | debconf-set-selections && \
#     apk add --no-cache tzdata && \
#     cp /usr/share/zoneinfo/Europe/Paris /etc/localtime && \
#     echo "Europe/Paris" > /etc/timezone && \
#     apk del tzdata

RUN apk update && \
    apk add sudo curl git build-base autoconf automake libtool \
    openssl-dev readline-dev zlib-dev sqlite-dev ncurses-dev \
    xz-dev tk-dev libffi-dev bzip2-dev bash gcc make musl-dev \
    libffi-dev openssl-dev zlib-dev readline-dev sqlite-dev 

RUN curl https://pyenv.run | bash

ENV PATH="/root/.pyenv/bin:$PATH"

RUN eval "$(pyenv init -)" && \
    eval "$(pyenv virtualenv-init -)"


WORKDIR /root/workdir
COPY .python-version .python-version
RUN for version in $(cat .python-version); do \
    /root/.pyenv/bin/pyenv install $version; \
done

COPY setup.cfg setup.cfg
COPY awscurl awscurl
COPY setup.py setup.py
COPY scripts/ci.sh scripts/ci.sh
COPY requirements.txt requirements.txt
COPY requirements-test.txt requirements-test.txt
COPY tests tests

# RUN bash -c "source /root/venv/bin/activate && cd dd && tox --recreate"