added docker-compose for linux
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
FROM python:3.11-slim
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY requirements.txt .
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
COPY . .
|
||||
|
||||
EXPOSE 8000
|
||||
|
||||
CMD ["sh", "-c", "python manage.py migrate --no-input && python manage.py collectstatic --no-input && uvicorn scalesapp.asgi:application --host 0.0.0.0 --port 8000"]
|
||||
Reference in New Issue
Block a user