ci: add docker image creation
Docker Build and Push / build-and-push (push) Successful in 1m22s

This commit is contained in:
2025-12-28 00:07:17 +03:00
parent 17edacd3ac
commit 002cf1ad07
4 changed files with 55 additions and 1 deletions
+23
View File
@@ -0,0 +1,23 @@
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"]