forked from infobyte/faraday
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
27 lines (20 loc) · 779 Bytes
/
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
FROM python:3.8.15-slim-buster
WORKDIR /src
COPY . /src
COPY ./docker/entrypoint.sh /entrypoint.sh
COPY ./docker/server.ini /docker_server.ini
# deploy scripts
RUN apt-get update && apt-get install -y --no-install-recommends build-essential libgdk-pixbuf2.0-0 \
libpq-dev libsasl2-dev libldap2-dev libssl-dev libmagic1 redis-tools netcat\
&& pip install -U pip --no-cache-dir \
&& rm -rf /var/lib/{apt,dpkg,cache,log}/ \
&& pip install . --no-cache-dir \
&& chmod +x /entrypoint.sh \
&& rm -rf /src
WORKDIR /home/faraday
RUN mkdir -p /home/faraday/.faraday/config
RUN mkdir -p /home/faraday/.faraday/logs
RUN mkdir -p /home/faraday/.faraday/session
RUN mkdir -p /home/faraday/.faraday/storage
ENV PYTHONUNBUFFERED 1
ENV FARADAY_HOME /home/faraday