Skip to content

Commit

Permalink
fix API docs not copied when building image (#2589)
Browse files Browse the repository at this point in the history
  • Loading branch information
kelvin-muchiri authored Apr 19, 2024
1 parent 9e10a18 commit 64fd3c4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 0 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ services:
build:
context: .
dockerfile: ./docker/onadata-uwsgi/Dockerfile.ubuntu
target: runserver
depends_on:
- database
- cache
Expand All @@ -19,7 +18,6 @@ services:
build:
context: .
dockerfile: ./docker/onadata-uwsgi/Dockerfile.ubuntu
target: runserver
depends_on:
- database
- cache
Expand Down
5 changes: 1 addition & 4 deletions docker/onadata-uwsgi/Dockerfile.ubuntu
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ RUN mkdir -m 0600 ~/.ssh && ssh-keyscan github.com >> ~/.ssh/known_hosts
# hadolint ignore=DL3013
RUN --mount=type=ssh if [ -n "$optional_packages" ]; then pip install ${optional_packages} ; fi

FROM ubuntu:focal-20240123 as base
FROM ubuntu:focal-20240123

ARG release_version=v3.18.2

Expand Down Expand Up @@ -100,12 +100,9 @@ RUN python3.10 -m pip install --no-cache-dir -U pip && \
python3.10 -m pip install setuptools==65.5.1 && \
python3.10 -m pip install --no-cache-dir pyyaml uwsgitop

FROM base as docs
# Compile API Docs
RUN make -C docs html

FROM base as runserver

EXPOSE 8000

USER onadata
Expand Down

0 comments on commit 64fd3c4

Please sign in to comment.