slim
This commit is contained in:
parent
92b9f8d489
commit
96bde590ad
16
Dockerfile
16
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 && \
|
#RUN addgroup -S appgroup -g 1000 && \
|
||||||
adduser -u 1000 -S appuser -G appgroup
|
# adduser -u 1000 -S appuser -G appgroup
|
||||||
|
|
||||||
|
|
||||||
|
RUN addgroup appgroup && \
|
||||||
|
adduser appuser && adduser appuser appgroup
|
||||||
|
|
||||||
RUN mkdir /app /src
|
RUN mkdir /app /src
|
||||||
|
|
||||||
ADD . /src
|
ADD requirements.txt /src
|
||||||
RUN CASS_DRIVER_BUILD_CONCURRENCY=4 pip install -r /src/requirements.txt
|
RUN CASS_DRIVER_BUILD_CONCURRENCY=4 pip install -r /src/requirements.txt
|
||||||
|
ADD . /src
|
||||||
RUN pip install /src
|
RUN pip install /src
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
ENTRYPOINT ["websuck"]
|
ENTRYPOINT ["websuck"]
|
||||||
|
Loading…
Reference in New Issue
Block a user