File tree Expand file tree Collapse file tree 3 files changed +13
-7
lines changed
Expand file tree Collapse file tree 3 files changed +13
-7
lines changed Original file line number Diff line number Diff line change 66
77env :
88 REGISTRY : ghcr.io
9+ DOCKER_BUILDKIT : 1
10+ BUILDKIT_PROGRESS : plain
911
1012jobs :
1113 build-and-push-image :
Original file line number Diff line number Diff line change 66
77env :
88 REGISTRY : ghcr.io
9+ DOCKER_BUILDKIT : 1
10+ BUILDKIT_PROGRESS : plain
911
1012jobs :
1113 test :
Original file line number Diff line number Diff line change @@ -13,16 +13,18 @@ RUN poetry build
1313
1414FROM python:3.10 AS deployment
1515LABEL maintainer="foss@spectric.com"
16+ RUN useradd -d /home/datashader datashader && \
17+ mkdir -p /home/datashader /opt/elastic_datashader/tms-cache && \
18+ chown -R datashader:datashader /home/datashader /opt/elastic_datashader
1619
17- ENV PIP_ROOT_USER_ACTION=ignore
18-
19- COPY --from=builder /build/dist/*.whl /opt/elastic_datashader/
20- RUN mkdir -p /opt/elastic_datashader/tms-cache && \
21- pip install --upgrade pip && \
22- pip install --no-cache-dir /opt/elastic_datashader/*.whl && \
20+ USER datashader
21+ RUN mkdir /home/datashader/tmp
22+ COPY --from=builder /build/dist/*.whl /home/datashader/tmp/
23+ RUN pip install --upgrade pip && \
24+ pip install --no-cache-dir /home/datashader/*.whl && \
2325 pip install uvicorn
2426
25- COPY deployment/logging_config.yml /opt/elastic_datashader
27+ COPY deployment/logging_config.yml /opt/elastic_datashader/
2628
2729VOLUME ["/opt/elastic_datashader/tms-cache" ]
2830ENV DATASHADER_CACHE_DIRECTORY=/opt/elastic_datashader/tms-cache
You can’t perform that action at this time.
0 commit comments