File: Dockerfile

package info (click to toggle)
python-influxdb-client 1.40.0-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,216 kB
  • sloc: python: 60,236; sh: 64; makefile: 53
file content (16 lines) | stat: -rw-r--r-- 607 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
FROM amazonlinux:2
RUN mkdir /install
WORKDIR /install
RUN yum install -y amazon-linux-extras
RUN amazon-linux-extras enable python3.8
RUN yum install -y python38 python38-devel python3-pip zip gcc
RUN python3.8 -m pip install --no-cache-dir --upgrade pip && \
    python3.8 -m pip install --no-cache-dir virtualenv
RUN python3.8 -m venv lambda
RUN source lambda/bin/activate
# Python dependencies to be included in output zip file:
RUN python3.8 -m pip install --no-cache-dir influxdb-client[ciso] -t /install/python
# Create zip file
WORKDIR /install/python
RUN zip -r ../python.zip .
VOLUME ["/install"]