Stitching things up

This commit is contained in:
2025-12-03 12:04:48 +03:00
parent 79bad39bd9
commit 4e37cd1ef8
37 changed files with 2183 additions and 2154 deletions

View File

@@ -1,12 +1,4 @@
FROM node:25-alpine AS node-build-stage
COPY ./watcher_visio/static ./
RUN npx tailwindcss \
-i input.css \
-o ./tailwind.css --minify
FROM alpine:3 AS venv-build-stage
FROM alpine:3 AS build
RUN apk update && \
apk add --no-cache --virtual .build-deps \
@@ -16,7 +8,7 @@ RUN apk update && \
RUN python3 -m venv /venv
ENV PATH "/venv/bin:$PATH"
COPY ./watcher_visio/requirements.txt /
COPY ./requirements.txt /
RUN pip install -r /requirements.txt
@@ -33,7 +25,8 @@ RUN apk add --no-cache --update python3
COPY --from=build /venv /venv
RUN mkdir /app
COPY --from=build /app /app
WORKDIR /app
COPY ./ /
ENTRYPOINT ["/app/docker-entrypoint.sh"]
CMD [ "python", "manage.py", "runserver", "0.0.0.0:8000" ]