mirror of
https://github.com/rustmailer/bichon.git
synced 2026-08-03 07:48:34 +02:00
update
This commit is contained in:
+5
-5
@@ -12,17 +12,17 @@ LABEL description="Dockerized Bichon service"
|
||||
WORKDIR /opt/bichon
|
||||
|
||||
# Copy compiled binary (ensure it's statically linked or compatible with bullseye)
|
||||
COPY ${TARGETARCH}/bichon /opt/bichon/bichon
|
||||
COPY ${TARGETARCH}/bichon-server /opt/bichon/bichon-server
|
||||
COPY ${TARGETARCH}/LICENSE /opt/bichon/
|
||||
|
||||
|
||||
# cli tools
|
||||
COPY ${TARGETARCH}/bichonctl /usr/local/bin/bichonctl
|
||||
COPY ${TARGETARCH}/bichon-cli /usr/local/bin/bichon-cli
|
||||
COPY ${TARGETARCH}/bichon-admin /usr/local/bin/bichon-admin
|
||||
|
||||
# Set permissions
|
||||
RUN chmod +x /opt/bichon/bichon
|
||||
RUN chmod +x /usr/local/bin/bichonctl
|
||||
RUN chmod +x /opt/bichon/bichon-server
|
||||
RUN chmod +x /usr/local/bin/bichon-cli
|
||||
RUN chmod +x /usr/local/bin/bichon-admin
|
||||
|
||||
|
||||
@@ -40,4 +40,4 @@ WORKDIR /data
|
||||
HEALTHCHECK --interval=30s --timeout=5s --start-period=5s --retries=3 \
|
||||
CMD curl -fs http://localhost:15630/api/status || exit 1
|
||||
|
||||
CMD ["/opt/bichon/bichon"]
|
||||
CMD ["/opt/bichon/bichon-server"]
|
||||
|
||||
+2
-2
@@ -19,8 +19,8 @@ VERSION=$(sed -n 's/^version = "\(.*\)"/\1/p' ../Cargo.toml)
|
||||
echo "Step 3: Extracted version: $VERSION"
|
||||
|
||||
# Step 4: Copy the compiled RustMailer binary to current directory (docker/)
|
||||
cp ../target/release/bichon .
|
||||
echo "Step 4: Copied bichon binary"
|
||||
cp ../target/release/bichon-server .
|
||||
echo "Step 4: Copied bichon-server binary"
|
||||
|
||||
# Step 5: Build Docker image with version tag
|
||||
sudo docker build --build-arg CRATE_VERSION=$VERSION -t bichon:$VERSION .
|
||||
|
||||
Reference in New Issue
Block a user