Compare commits
No commits in common. "991cb57c88c0931690c00465051382ac03b183c5" and "20e1df177cede93458b17545f0afc0ec9d2c9e79" have entirely different histories.
991cb57c88
...
20e1df177c
|
@ -1,9 +1,9 @@
|
||||||
FROM rust:1.79.0 AS dioxus
|
FROM rust:1.77.2 as dioxus
|
||||||
RUN cargo install dioxus-cli@^0.5
|
RUN cargo install dioxus-cli@^0.5
|
||||||
|
|
||||||
FROM dioxus AS builder
|
FROM dioxus as builder
|
||||||
WORKDIR /athome/
|
WORKDIR /athome/
|
||||||
RUN apt-get update && apt-get install nodejs npm libssl-dev musl-tools -y && rm -rf /var/lib/apt/lists/*
|
RUN apt-get update && apt-get install nodejs npm -y && rm -rf /var/lib/apt/lists/*
|
||||||
RUN npm install -D tailwindcss
|
RUN npm install -D tailwindcss
|
||||||
COPY ./src/ ./src/
|
COPY ./src/ ./src/
|
||||||
COPY ./assets/ ./assets/
|
COPY ./assets/ ./assets/
|
||||||
|
@ -13,7 +13,7 @@ COPY ./Dioxus.toml ./Dioxus.toml
|
||||||
COPY ./tailwind.config.js ./tailwind.config.js
|
COPY ./tailwind.config.js ./tailwind.config.js
|
||||||
RUN npx tailwindcss -i ./input.css -o ./assets/tailwind.css && dx build --platform fullstack --release
|
RUN npx tailwindcss -i ./input.css -o ./assets/tailwind.css && dx build --platform fullstack --release
|
||||||
|
|
||||||
FROM dioxus AS runner
|
FROM dioxus as runner
|
||||||
WORKDIR /app/
|
WORKDIR /app/
|
||||||
COPY --from=builder /athome/docs/ ./docs/
|
COPY --from=builder /athome/docs/ ./docs/
|
||||||
CMD [ "./docs/athome" ]
|
CMD [ "./docs/athome" ]
|
||||||
|
|
|
@ -1,20 +1,9 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
TAG=$(git branch | grep "*" | awk '{ print $2 }')
|
VERSION=0.1.2
|
||||||
LOCAL_IMAGE="athome"
|
LOCAL_IMAGE="athome"
|
||||||
REGISTRY="mos4"
|
|
||||||
REMOTE_IMAGE="athome"
|
REMOTE_IMAGE="athome"
|
||||||
DOCKERFILE="./Dockerfile"
|
|
||||||
|
|
||||||
echo "DOCKERFILE: $DOCKERFILE"
|
docker build -t $LOCAL_IMAGE .
|
||||||
echo "TAG: $TAG"
|
docker tag $LOCAL_IMAGE:latest mos4/$REMOTE_IMAGE:$VERSION
|
||||||
echo "LOCAL_IMAGE: $LOCAL_IMAGE"
|
docker push mos4/$REMOTE_IMAGE:$VERSION
|
||||||
echo "REGISTRY: $REGISTRY"
|
|
||||||
echo "REMOTE_IMAGE: $REMOTE_IMAGE"
|
|
||||||
|
|
||||||
#docker buildx build --platform linux/amd64,linux/arm64 -f ${DOCKERFILE} -t \
|
|
||||||
# ${REGISTRY}/${REMOTE_IMAGE}:${TAG} . --push
|
|
||||||
|
|
||||||
docker buildx build --platform linux/amd64 -f ${DOCKERFILE} \
|
|
||||||
-t ${REGISTRY}/${REMOTE_IMAGE}:${TAG} \
|
|
||||||
-t ${REGISTRY}/${REMOTE_IMAGE}:latest . --push
|
|
||||||
|
|
Loading…
Reference in New Issue