Files
lair.moe/Dockerfile
T

26 lines
548 B
Docker
Raw Normal View History

2025-08-07 21:16:47 +03:00
FROM node:18-alpine as sass
RUN NODE_OPTIONS=--dns-result-order=ipv4first npm install -g sass
WORKDIR /build
2026-01-17 18:55:25 +03:00
COPY ./blueprints ./blueprints
RUN sass ./blueprints:./blueprints \
2025-08-07 21:16:47 +03:00
--no-source-map \
--style=compressed
2025-08-06 17:31:20 +03:00
2025-08-07 21:16:47 +03:00
FROM python:3.11-slim
2025-08-06 17:31:20 +03:00
WORKDIR /app
COPY . .
2026-01-17 18:55:25 +03:00
COPY --from=sass /build/blueprints/ ./blueprints/
2025-08-07 21:16:47 +03:00
RUN apt update && apt upgrade
RUN apt install libmagic1 -y
2025-08-06 17:31:20 +03:00
RUN pip install --no-cache-dir -r requirements.txt
2025-08-07 21:16:47 +03:00
ENV FLASK_ENV=production
ENV PYTHONUNBUFFERED=1
CMD ["gunicorn", "app:app", "-b", "0.0.0.0:80", "--workers", "4"]