forked from coderholic/django-cities
-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
11daf63
commit c2cf589
Showing
4 changed files
with
69 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Ignore common Python files and directories | ||
*.pyc | ||
__pycache__/ | ||
*.pyo | ||
*.pyd | ||
|
||
# Ignore development and testing files | ||
*.env | ||
*.log | ||
*.sqlite3 | ||
|
||
# Ignore virtual environment files | ||
venv/ | ||
.env | ||
|
||
# vscode & codespaces | ||
.vscode/* | ||
!.vscode/settings.json | ||
!.vscode/tasks.json | ||
!.vscode/launch.json | ||
!.vscode/extensions.json | ||
*.code-workspace |
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,20 @@ | ||
# Use the official Python image as the base image | ||
FROM python:3.12-alpine | ||
|
||
# Install MySQL and PostgreSQL client libraries | ||
RUN apk update && apk add --no-cache \ | ||
mariadb-connector-c-dev \ | ||
postgresql-dev python3-dev musl-dev | ||
|
||
# Install Tox | ||
RUN pip install tox | ||
RUN tox -e dev | ||
|
||
# Set the working directory | ||
WORKDIR /app | ||
|
||
# Copy the project files to the working directory | ||
COPY . /app | ||
|
||
# Set the entrypoint command | ||
CMD ["tox"] |
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,13 @@ | ||
version: '3.9' | ||
services: | ||
db: | ||
image: postgres | ||
environment: | ||
POSTGRES_PASSWORD: example | ||
app: | ||
build: . | ||
volumes: | ||
- .:/app | ||
working_dir: /app | ||
links: | ||
- db |