https://github.com/parrotmac/poetrypg
Python Poetry image with basic requirements for a PostgreSQL app
https://github.com/parrotmac/poetrypg
Last synced: 10 months ago
JSON representation
Python Poetry image with basic requirements for a PostgreSQL app
- Host: GitHub
- URL: https://github.com/parrotmac/poetrypg
- Owner: parrotmac
- Created: 2022-04-10T00:39:25.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-08-23T04:47:35.000Z (over 2 years ago)
- Last Synced: 2025-01-24T04:46:39.384Z (12 months ago)
- Language: Python
- Homepage: https://hub.docker.com/r/isaacp/poetrypg/tags
- Size: 51.8 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# poetrypg
Prebuilt Poetry images that aspire to have the prerequisites available for a Python-based PostgreSQL app.
The main target for this container is to be used as a basis for things like Django or SQLAlchemy that connect to a PostgreSQL DB and are using Poetry.
### Goals
- [x] Auto-update from Poetry versions
- [ ] Auto-update from Python versions
- [ ] Auto-update from Debian & Alpine versions
Since these containers are, in turn, based on other containers, we'll probably need a way to query the DockerHub API for avaialble versions.
### Example Usage
```dockerfile
FROM isaacp/poetrypg:1.1.13-py3.9.12-alpine # Or, ya know, whatever version
# This will be our example app's home
WORKDIR /app
COPY pyproject.toml poetry.lock ./
# Install dependencies
RUN poetry install --no-ansi --no-dev
# Copy all your project files
# While this can be done earlier, it can be convienient to cache the above steps since they may take longer to complete.
COPY . ./
```