Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:

env:
REGISTRY: ghcr.io
DOCKER_BUILDKIT: 1
BUILDKIT_PROGRESS: plain

jobs:
build-and-push-image:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:

env:
REGISTRY: ghcr.io
DOCKER_BUILDKIT: 1
BUILDKIT_PROGRESS: plain

jobs:
test:
Expand Down
16 changes: 9 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,18 @@ RUN poetry build

FROM python:3.10 AS deployment
LABEL maintainer="foss@spectric.com"
RUN useradd -d /home/datashader datashader && \
mkdir -p /home/datashader /opt/elastic_datashader/tms-cache && \
chown -R datashader:datashader /home/datashader /opt/elastic_datashader

ENV PIP_ROOT_USER_ACTION=ignore

COPY --from=builder /build/dist/*.whl /opt/elastic_datashader/
RUN mkdir -p /opt/elastic_datashader/tms-cache && \
pip install --upgrade pip && \
pip install --no-cache-dir /opt/elastic_datashader/*.whl && \
USER datashader
RUN mkdir /home/datashader/tmp
COPY --from=builder /build/dist/*.whl /home/datashader/tmp/
RUN pip install --upgrade pip && \
pip install --no-cache-dir /home/datashader/tmp/*.whl && \
pip install uvicorn

COPY deployment/logging_config.yml /opt/elastic_datashader
COPY deployment/logging_config.yml /opt/elastic_datashader/

VOLUME ["/opt/elastic_datashader/tms-cache"]
ENV DATASHADER_CACHE_DIRECTORY=/opt/elastic_datashader/tms-cache
Expand Down