-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
37 lines (27 loc) · 894 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
28
29
30
31
32
33
34
35
36
37
FROM python:3.6-slim
MAINTAINER Synx <[email protected]>
ARG BUILD_DATE
ARG VCS_REF
ARG VERSION
LABEL org.label-schema.build-date=$BUILD_DATE \
org.label-schema.name="Synx Scrapping Worker" \
org.label-schema.description="Default stack for scrapping." \
org.label-schema.url="https://synx.ai" \
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.vcs-url="https://github.com/synx-ai/galois" \
org.label-schema.vendor="Synx" \
org.label-schema.version=$VERSION \
org.label-schema.schema-version="1.0"
EXPOSE 6800
RUN pip install --upgrade --no-cache-dir pip setuptools
RUN set -ex; \
pip install --no-cache-dir \
parse \
pyOpenSSL \
scrapy \
scrapyd
COPY provisioning/jobcrawler/ /opt/jobcrawler
COPY config/scrapyd.conf /etc/scrapyd/
WORKDIR /opt/jobcrawler
ENV PYTHONUNBUFFERED=0
CMD ["scrapyd"]