forked from IBM/count-mvs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
18 lines (14 loc) · 845 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Copyright 2022 IBM Corporation All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
# This image is used for local development, it is designed to be as close to a QRadar environment as possible.
FROM registry.access.redhat.com/ubi8/ubi-minimal:8.6-994
# Set up Python + RPM dependencies
RUN microdnf install openssl python2 python2-psycopg2 python2-requests python3 python3-devel python3-psycopg2 python3-requests make git gcc -y
RUN ln -s /usr/bin/python3.6 /usr/local/bin/python
RUN ln -s /usr/bin/python3.6 /usr/local/bin/python3
RUN ln -s /usr/bin/python2.7 /usr/local/bin/python2
# Set up dev dependencies
COPY python3/requirements.txt /py3-requirements.txt
COPY python2/requirements.txt /py2-requirements.txt
RUN python3 -m pip install -r /py3-requirements.txt --user
RUN python2 -m pip install -r /py2-requirements.txt --user