Compare commits
2 Commits
0bc3a4ceea
...
f205ccce05
| Author | SHA1 | Date |
|---|---|---|
|
|
f205ccce05 | 2 years ago |
|
|
e34e05acdd | 2 years ago |
6 changed files with 50 additions and 3 deletions
@ -0,0 +1,16 @@ |
|||||
|
FROM python:3.9.15-alpine3.16 |
||||
|
|
||||
|
RUN python3 -m ensurepip && pip3 install --upgrade pip setuptools wheel |
||||
|
WORKDIR /opt/app |
||||
|
|
||||
|
COPY ./requirements.txt /tmp/ |
||||
|
RUN pip3 install -r /tmp/requirements.txt |
||||
|
|
||||
|
COPY . /opt/app/ |
||||
|
|
||||
|
EXPOSE 8000 |
||||
|
|
||||
|
ENV PYTHONUNBUFFERED 1 |
||||
|
|
||||
|
RUN python manage.py collectstatic --noinput |
||||
|
CMD python manage.py runserver 0.0.0.0:8000 |
||||
@ -0,0 +1,20 @@ |
|||||
|
# Generated by Django 4.2.7 on 2024-01-28 21:36 |
||||
|
|
||||
|
from django.db import migrations, models |
||||
|
|
||||
|
|
||||
|
class Migration(migrations.Migration): |
||||
|
|
||||
|
dependencies = [ |
||||
|
('blog', '0008_index_post_show_on_page_sexy_posts_show_on_page'), |
||||
|
] |
||||
|
|
||||
|
operations = [ |
||||
|
migrations.CreateModel( |
||||
|
name='Visit', |
||||
|
fields=[ |
||||
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), |
||||
|
('count', models.IntegerField(default=0)), |
||||
|
], |
||||
|
), |
||||
|
] |
||||
Binary file not shown.
Loading…
Reference in new issue