2021-01-20 12:54:02 +00:00
|
|
|
FROM python:3.8-slim
|
2020-05-10 09:48:17 +00:00
|
|
|
|
2021-01-20 12:54:02 +00:00
|
|
|
RUN apt-get update && apt-get install -y git curl libcurl4-openssl-dev build-essential vim libssl-dev
|
|
|
|
# build-essentials vim lxml-dev libxml2-dev libxslt-dev
|
2020-05-10 09:48:17 +00:00
|
|
|
|
2021-01-20 12:54:02 +00:00
|
|
|
#RUN addgroup -S appgroup -g 1000 && \
|
|
|
|
# adduser -u 1000 -S appuser -G appgroup
|
|
|
|
|
|
|
|
|
|
|
|
RUN addgroup appgroup && \
|
|
|
|
adduser appuser && adduser appuser appgroup
|
2020-05-10 09:48:17 +00:00
|
|
|
|
2021-01-20 12:53:38 +00:00
|
|
|
RUN mkdir /app /src
|
2020-05-11 14:43:39 +00:00
|
|
|
|
2021-01-20 12:54:02 +00:00
|
|
|
ADD requirements.txt /src
|
2021-01-20 12:53:38 +00:00
|
|
|
RUN CASS_DRIVER_BUILD_CONCURRENCY=4 pip install -r /src/requirements.txt
|
2021-01-20 12:54:02 +00:00
|
|
|
ADD . /src
|
2021-01-20 12:53:38 +00:00
|
|
|
RUN pip install /src
|
2020-05-11 14:43:39 +00:00
|
|
|
WORKDIR /app
|
2020-05-10 09:48:17 +00:00
|
|
|
ENTRYPOINT ["websuck"]
|