diff --git a/Dockerfile b/Dockerfile index ef8a2dd..58b93a8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,14 +1,20 @@ -FROM python:3.8.0-alpine +FROM python:3.8-slim -RUN apk add --update --no-cache git curl curl-dev vim py3-lxml gcc make libxml2-dev libxslt-dev libc-dev +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 -S appgroup -g 1000 && \ +# adduser -u 1000 -S appuser -G appgroup + + +RUN addgroup appgroup && \ + adduser appuser && adduser appuser appgroup RUN mkdir /app /src -ADD . /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"]