File: Dockerfile.fedora28.py3

package info (click to toggle)
python-plyer 2.1.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,808 kB
  • sloc: python: 13,395; sh: 217; makefile: 177
file content (38 lines) | stat: -rw-r--r-- 853 bytes parent folder | download | duplicates (3)
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 fedora:28

ENV APP_DIR=/app
RUN mkdir $APP_DIR
WORKDIR $APP_DIR

# install default packages
# redhat-rpm-config: https://stackoverflow.com/a/34641068/5994041
RUN yum -y install \
    gcc \
    python3-devel \
    java-1.8.0-openjdk \
    java-1.8.0-openjdk-devel \
    lshw \
    wget \
    xdg-user-dirs \
    redhat-rpm-config \
    && yum -y autoremove \
    && yum clean all

# generate user folder locations (Pictures, Downloads, ...)
RUN xdg-user-dirs-update

# install PIP
RUN python3.6 -V && \
    python3.6 -m pip install --upgrade pip

# install dev packages
COPY devrequirements.txt .
RUN python3.6 -m pip install \
        --upgrade \
        --requirement devrequirements.txt
RUN python3.6 -m pip install pyjnius

COPY . $APP_DIR
COPY ./ci/entrypoint.sh $APP_DIR
RUN python3.6 -m pip install .
ENTRYPOINT ["/app/entrypoint.sh", "py3"]