Files
kolibrios.org/Dockerfile
Sweetbread 002cf1ad07
All checks were successful
Docker Build and Push / build-and-push (push) Successful in 1m22s
ci: add docker image creation
2025-12-29 21:49:08 +03:00

24 lines
423 B
Docker

FROM node:18-alpine as sass
RUN npm install -g sass
WORKDIR /build
COPY ./static ./static
RUN sass ./static:./static \
--no-source-map \
--style=compressed
FROM python:3.11-slim
WORKDIR /app
COPY . .
COPY --from=sass /build/static/ ./static/
RUN pip install --no-cache-dir -r requirements.txt
ENV FLASK_ENV=production
ENV PYTHONUNBUFFERED=1
CMD ["gunicorn", "app:app", "-b", "0.0.0.0:80", "--workers", "4"]