websucker-pip/Dockerfile

16 lines
414 B
Docker
Raw Normal View History

2020-05-10 09:48:17 +00:00
FROM python:3.8.0-alpine
RUN apk add --update --no-cache git curl curl-dev vim py3-lxml gcc make libxml2-dev libxslt-dev libc-dev
2021-10-14 12:46:56 +00:00
RUN apk add py2-pip
RUN pip2 install cqlsh
2020-05-10 09:48:17 +00:00
RUN addgroup -S appgroup -g 1000 && \
adduser -u 1000 -S appuser -G appgroup
2021-10-14 12:46:56 +00:00
RUN mkdir /app /src
ADD requirements.txt setup.py ./websucker /src/
2020-05-11 14:43:39 +00:00
2021-10-14 12:46:56 +00:00
RUN CASS_DRIVER_BUILD_CONCURRENCY=4 pip install -r /src/requirements.txt
2020-05-11 14:43:39 +00:00
WORKDIR /app