Stitching things up
This commit is contained in:
15
Dockerfile
15
Dockerfile
@@ -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" ]
|
||||
Reference in New Issue
Block a user