Remove old docker-compose based dev setup
The devcontainer replaces Dockerfile.dev, dc.dev.yml and the related start/entrypoint scripts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
9895017385
commit
9f25457b24
7 files changed
+1
-67
No files matched your search
@@ -1,4 +1,4 @@
|
||||
# Keep the Python version in sync with Dockerfile.dev
|
||||
# Keep the Python version in sync with the production Dockerfile
|
||||
FROM python:3.15-slim-trixie
|
||||
|
||||
ARG USERNAME=dev
|
||||
|
||||
@@ -1,21 +0,0 @@
|
||||
FROM python:3.15-slim-trixie
|
||||
|
||||
RUN apt -y update && apt -y upgrade && \
|
||||
apt install --no-install-recommends -y wait-for-it lsb-release wget gnupg2 gcc libpq-dev libc-dev vim postgresql-client && apt clean all
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY requirements.txt .
|
||||
COPY requirements-dev.txt .
|
||||
RUN pip install -U -r requirements.txt -r requirements-dev.txt
|
||||
|
||||
RUN mkdir log
|
||||
|
||||
ENV PYTHONPATH=/app/
|
||||
ENV FLASK_APP=max.app
|
||||
ENV FLASK_ENV=development
|
||||
|
||||
COPY scripts/* ./
|
||||
|
||||
ENTRYPOINT ["./entrypoint-dev.sh"]
|
||||
CMD ["flask", "run", "--host", "0.0.0.0", "--port", "8000"]
|
||||
-27
@@ -1,27 +0,0 @@
|
||||
services:
|
||||
max:
|
||||
image: max:dev
|
||||
volumes:
|
||||
- ./max:/app/max
|
||||
depends_on:
|
||||
- postgresql
|
||||
command: $MAX_COMMAND
|
||||
ports:
|
||||
- 8000:8000/tcp
|
||||
environment:
|
||||
- PGSQL_HOST=postgresql
|
||||
- PGSQL_USER=max
|
||||
- PGSQL_PASSWORD=max
|
||||
- PGSQL_NAME=max
|
||||
networks:
|
||||
- postgresql
|
||||
postgresql:
|
||||
image: postgres:18.6
|
||||
environment:
|
||||
- POSTGRES_USER=max
|
||||
- POSTGRES_PASSWORD=max
|
||||
- POSTGRES_DB=max
|
||||
networks:
|
||||
- postgresql
|
||||
networks:
|
||||
postgresql:
|
||||
@@ -1,11 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
source "$(dirname "$0")/db-setup.sh"
|
||||
|
||||
flask add-domain finn.st
|
||||
flask add-domain stutzenste.in
|
||||
flask reset-admin admin@finn.st admin
|
||||
|
||||
exec "$@"
|
||||
@@ -1,3 +0,0 @@
|
||||
#!/bin/bash
|
||||
export FLASK_ENV=production
|
||||
gunicorn -w 1 -b 0.0.0.0:8000 max.app:app
|
||||
@@ -1,2 +0,0 @@
|
||||
#!/bin/bash
|
||||
flask run --host 0.0.0.0 --port 8000
|
||||
Reference in new issue
Block a user