Skip to content

Commit

Permalink
Add db
Browse files Browse the repository at this point in the history
  • Loading branch information
Dosenpfand committed Aug 6, 2023
1 parent 758c37b commit f734398
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -109,4 +109,5 @@ ENV/
.DS_Store

# Project specific
/.env
/.env
/app/app.db
18 changes: 18 additions & 0 deletions docker/Dockerfile-dev
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM tiangolo/meinheld-gunicorn:python3.9

COPY requirements.txt /tmp/requirements.txt
COPY requirements-dev.txt /tmp/requirements-dev.txt
RUN pip install --upgrade pip
RUN pip install --upgrade wheel
RUN pip install --no-cache-dir -r /tmp/requirements.txt -r /tmp/requirements-dev.txt

# Cron job
ENV CRONTAB_FILE=/etc/cron.d/app_cron
RUN set -eux; \
apt-get update; \
apt-get install -y --no-install-recommends cron; \
rm -rf /var/lib/apt/lists/*
COPY docker/crontab ${CRONTAB_FILE}
COPY docker/create_env.sh /root/create_env.sh

COPY ./ /app

0 comments on commit f734398

Please sign in to comment.