Base design
This commit is contained in:
14
Dockerfile
14
Dockerfile
@@ -1,4 +1,12 @@
|
||||
FROM alpine:3 AS build
|
||||
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
|
||||
|
||||
RUN apk update && \
|
||||
apk add --no-cache --virtual .build-deps \
|
||||
@@ -25,7 +33,7 @@ RUN apk add --no-cache --update python3
|
||||
COPY --from=build /venv /venv
|
||||
|
||||
RUN mkdir /app
|
||||
COPY ./watcher_visio/ /app
|
||||
COPY --from=build /app /app
|
||||
WORKDIR /app
|
||||
|
||||
CMD [ "python", "manage.py", "runserver", "0.0.0.0:5000" ]
|
||||
CMD [ "python", "manage.py", "runserver", "0.0.0.0:8000" ]
|
||||
Reference in New Issue
Block a user