-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: use Github Container Repository to publish docker images in CI
- Loading branch information
1 parent
d71e88e
commit 1dfa8c4
Showing
6 changed files
with
182 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
FROM python:3.12-slim | ||
|
||
# Set environment variables | ||
ENV PYTHONUNBUFFERED=1 \ | ||
PYTHONDONTWRITEBYTECODE=1 \ | ||
PYTHONPATH=/app/portfolio_analytics | ||
|
||
# Add labels | ||
LABEL maintainer="guillaume.bournique@gmail.com" \ | ||
description="Base Python image for Portfolio Analytics" \ | ||
org.opencontainers.image.source="https://github.com/gbourniq/portfolio_analytics" | ||
|
||
# Install common system dependencies | ||
RUN apt-get update && apt-get install -y \ | ||
curl \ | ||
htop \ | ||
vim \ | ||
procps \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# Create non-root user | ||
RUN groupadd -r appuser && useradd -r -g appuser appuser | ||
|
||
WORKDIR /app | ||
|
||
# Install poetry | ||
RUN python3.12 -m pip install poetry==1.8.5 && \ | ||
poetry config virtualenvs.create false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.