Skip to content
This repository has been archived by the owner on Oct 28, 2024. It is now read-only.

Commit

Permalink
Remove deps and speed up Docker build time
Browse files Browse the repository at this point in the history
  • Loading branch information
ahosgood committed Aug 6, 2024
1 parent 01ab77b commit ce5d5f3
Show file tree
Hide file tree
Showing 4 changed files with 113 additions and 282 deletions.
1 change: 0 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@
docker-compose.yml
Dockerfile
README.md
.flake8
.gitignore
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,14 @@ ARG IMAGE_TAG=latest

FROM ghcr.io/nationalarchives/tna-python:"$IMAGE_TAG"

# Copy in the application code
COPY --chown=app . .
# Copy in the dependencies config
COPY --chown=app pyproject.toml poetry.lock ./

# Install the dependencies
RUN tna-build

# Copy in the application code
COPY --chown=app . .

# Run the application
CMD ["tna-run", "-a", "etna-search-api:app"]
Loading

0 comments on commit ce5d5f3

Please sign in to comment.