Provide damned-lies in Docker
Hi,
I’m currently working on the best way to use Docker to deploy damned-lies in development environments. I’ve already started working on it works (still need to do extensive tests) and have a few more questions:
- to now, if Django works properly ever using MySQL, MariaDB, PostGreSQL or SQLite, maybe we should choose to stay on the last one because still in development environment. I think it’s the cheaper solution.
Currently, here’s what I have:
FROM python:3.6-slim
WORKDIR /app
COPY . /app
RUN apt update && \
apt install -y gettext intltool gnome-doc-utils itstool libmariadbclient-dev libicu-dev build-essential
RUN pip3 install -r requirements.txt && \
python3 ./manage.py migrate
ENTRYPOINT ["python3 ./manage.py runserver 0.0.0.0:8080"]
And the compose file:
version: "3"
services:
damned-lies:
build: .
container_name: damned-lies
hostname: damned-lies
ports:
- 8080:8080
volumes:
- .:/app
entrypoint: "python3 ./manage.py runserver 0.0.0.0:8080"
Edited by Guillaume Bernard