Skip to content

Commit

Permalink
Fix broken build
Browse files Browse the repository at this point in the history
  • Loading branch information
frankinspace committed Jun 13, 2024
1 parent 56c1b57 commit 6f92a78
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
8 changes: 6 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ WORKDIR /maap-api-nasa
COPY pyproject.toml poetry.lock ./
RUN touch README.md

RUN poetry install --without dev && rm -rf $POETRY_CACHE_DIR
RUN poetry install --without dev --no-root && rm -rf $POETRY_CACHE_DIR

FROM python:3.9-slim as runtime

Expand All @@ -24,8 +24,12 @@ ENV VIRTUAL_ENV=/maap-api-nasa/.venv \

COPY --from=builder ${VIRTUAL_ENV} ${VIRTUAL_ENV}

RUN apt-get update \
&& apt-get install -y --no-install-recommends git python3-psycopg2 \
&& apt-get purge -y --auto-remove \
&& rm -rf /var/lib/apt/lists/*

COPY api /maap-api-nasa/api
COPY api/settings.py /maap-api-nasa/api/settings.py
COPY logging.conf /maap-api-nasa/logging.conf
RUN mkdir /logs

1 change: 1 addition & 0 deletions docker/docker-compose-local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ services:
sh -c "flask run --host=0.0.0.0"
environment:
FLASK_APP: /maap-api-nasa/api/maapapp.py
DATABASE_URL: postgresql://maapuser:mysecretpassword@db/maap
restart: always
logging:
driver: "json-file"
Expand Down
3 changes: 0 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ description = "NASA Python implementation of the MAAP API specification"
authors = ["MAAP-Project Platform <[email protected]>"]
license = "Apache 2.0"
readme = "README.md"
packages = [
{include = "api"}
]

[tool.poetry.dependencies]
python = "^3.9.0"
Expand Down

0 comments on commit 6f92a78

Please sign in to comment.