26 lines
455 B
Text
26 lines
455 B
Text
|
FROM node:23-alpine3.20 AS node
|
||
|
|
||
|
WORKDIR /shortenit
|
||
|
COPY frontend /shortenit
|
||
|
|
||
|
RUN npm run build
|
||
|
|
||
|
FROM python:3.13-alpine3.21 AS python
|
||
|
|
||
|
WORKDIR /shortenit
|
||
|
COPY . /shortenit
|
||
|
COPY --from=node /ui/ /shorthenit/ui/
|
||
|
|
||
|
RUN rm -rf dist/ && \
|
||
|
pip install poetry && \
|
||
|
poetry build
|
||
|
|
||
|
FROM python:3.13-alpine3.21
|
||
|
|
||
|
COPY --from=python /shortenit/dist/*.tar.gz /shortenit/
|
||
|
|
||
|
RUN pip install /shortenit/*.tar.gz && \
|
||
|
rm -rf /shortenit
|
||
|
|
||
|
ENTRYPOINT ["shortenit"]
|