https://github.com/audreyteles/django-mysql-docker-image
https://github.com/audreyteles/django-mysql-docker-image
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/audreyteles/django-mysql-docker-image
- Owner: audreyteles
- Created: 2023-06-04T03:48:45.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-06-04T05:50:58.000Z (about 2 years ago)
- Last Synced: 2025-01-21T12:47:51.282Z (5 months ago)
- Language: Dockerfile
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Docker Image for Django projects with MySQL
This image was build to simplify your work of creating a Django project with MySQL connection. When I tried it without a template, I had a lot of problems, so I hope to help you with that.
Here is the Dockerfile:
```
FROM python:3.10-slim-busterLABEL maintainer="Audrey Teles"
ENV PYTHONUNBUFFERED=1
WORKDIR /django
COPY requirements.txt requirements.txt
RUN apt-get update && apt-get install default-libmysqlclient-dev -y
RUN apt-get install gcc -y
RUN pip3 install -r requirements.txt
```