21 lines
534 B
Docker
21 lines
534 B
Docker
FROM python:3.8-slim
|
|
|
|
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
|
|
|
|
#RUN addgroup -S appgroup -g 1000 && \
|
|
# adduser -u 1000 -S appuser -G appgroup
|
|
|
|
|
|
RUN addgroup appgroup && \
|
|
adduser appuser && adduser appuser appgroup
|
|
|
|
RUN mkdir /app /src
|
|
|
|
ADD requirements.txt /src
|
|
RUN CASS_DRIVER_BUILD_CONCURRENCY=4 pip install -r /src/requirements.txt
|
|
ADD . /src
|
|
RUN pip install /src
|
|
WORKDIR /app
|
|
ENTRYPOINT ["websuck"]
|