chore: add static directory to Docker image build with COPY instruction
Add COPY static ./static to Dockerfile to include static assets (CSS/JS/images) in container image alongside templates directory
This commit is contained in:
@@ -7,5 +7,6 @@ COPY requirements.txt .
|
|||||||
RUN pip install --no-cache-dir -r requirements.txt
|
RUN pip install --no-cache-dir -r requirements.txt
|
||||||
COPY app.py .
|
COPY app.py .
|
||||||
COPY templates ./templates
|
COPY templates ./templates
|
||||||
|
COPY static ./static
|
||||||
EXPOSE 8099
|
EXPOSE 8099
|
||||||
CMD ["gunicorn", "--bind", "0.0.0.0:8099", "--workers", "1", "--threads", "4", "--timeout", "120", "app:app"]
|
CMD ["gunicorn", "--bind", "0.0.0.0:8099", "--workers", "1", "--threads", "4", "--timeout", "120", "app:app"]
|
||||||
|
|||||||
Reference in New Issue
Block a user