add docker files

This commit is contained in:
2025-05-16 12:53:49 +03:00
parent 9cf83b9710
commit bb0440986c
5 changed files with 18 additions and 1 deletions

1
.gitignore vendored
View File

@@ -86,7 +86,6 @@ media/
# Docker файлы
*.pid
*.dockerignore
docker-compose.override.yml
.DS_Store

2
backend/.dockerignore Normal file
View File

@@ -0,0 +1,2 @@
.dockerignore
Dockerfile

7
backend/Dockerfile Normal file
View File

@@ -0,0 +1,7 @@
FROM python:3.13-alpine
WORKDIR /app
COPY requirements.txt .
COPY . .
RUN pip install --no-cache-dir -r requirements.txt
EXPOSE 8000
CMD ["gunicorn", "--bind", "0.0.0.0:8000", "base.wsgi:application"]

2
frontend/.dockerignore Normal file
View File

@@ -0,0 +1,2 @@
.dockerignore
Dockerfile

7
frontend/Dockerfile Normal file
View File

@@ -0,0 +1,7 @@
FROM node:23-alpine
WORKDIR /build
COPY . ./
RUN npm install
RUN npm run build
EXPOSE 3000
CMD [ "npm", "start" ]