-
Notifications
You must be signed in to change notification settings - Fork 7
/
Dockerfile
52 lines (44 loc) · 1.13 KB
/
Dockerfile
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
FROM ubuntu:jammy
MAINTAINER Helvio Junior <helvio_junior@hotmail.com>
USER root
SHELL ["/bin/bash", "-xo", "pipefail", "-c"]
# Generate locale C.UTF-8
ENV LANG C.UTF-8
ENV TZ=UTC
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
# Update and install dependencies
RUN apt update \
&& apt upgrade -y \
&& apt install -yqq --no-install-recommends \
git \
gcc \
python3 \
python3-pip \
python3-dev \
build-essential \
libssl-dev \
libffi-dev\
python3-setuptools \
unzip \
default-jre \
default-jdk \
libmagic-dev \
curl \
wget \
gpg \
vim \
jq \
&& apt clean all \
&& apt autoremove
RUN echo FileCrawler > /etc/hostname
WORKDIR /tmp
ENV GIT_SSL_NO_VERIFY="true"
RUN python3 -m pip install -U pip && \
git clone https://github.com/helviojunior/filecrawler.git installer && \
python3 -m pip install -U installer/ && \
mkdir -p /u01/ && mkdir /u02/ && chmod -R 777 /u0{1,2}/ && \
ln -s /u01/ /root/.filecrawler && \
rm -rf /tmp/* && \
filecrawler -h
WORKDIR /u02/
ENTRYPOINT ["filecrawler"]