mirror of
https://github.com/bratusev07/skb-market.git
synced 2026-12-04 20:59:45 +00:00
feat: prepare production Docker deployment
This commit is contained in:
1 parent
36b1341a10
commit
d4cf42cb5e
5 files changed
+99
-16
No files matched your search
+16
@@ -0,0 +1,16 @@
|
||||
|
||||
FROM python:3.12-slim
|
||||
|
||||
ENV PYTHONDONTWRITEBYTECODE=1
|
||||
ENV PYTHONUNBUFFERED=1
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY requirements.txt .
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
COPY . .
|
||||
|
||||
EXPOSE 8000
|
||||
|
||||
CMD ["gunicorn", "config.wsgi:application", "--bind", "0.0.0.0:8000", "--workers", "2"]
|
||||
Reference in new issue
Block a user