Some checks failed
build-all / build-gateway (push) Failing after 1s
build-images / gateway (push) Failing after 1s
build-all / build-users (push) Failing after 1s
build-all / build-cron (push) Failing after 2s
build-gateway / build (push) Failing after 4s
build-services / build-gateway (push) Failing after 3s
build-services / build-users (push) Failing after 5s
build-services / build-jobs (push) Failing after 3s
build-and-push / detect-changes (push) Successful in 8s
build-services / build-cron (push) Failing after 2s
build-services / build-leads (push) Failing after 4s
build-all-services / build (push) Failing after 3s
build-and-push / build (cron) (push) Failing after 5s
build-and-push / build (customers) (push) Failing after 3s
build-and-push / build (employees) (push) Failing after 3s
build-and-push / build (developers) (push) Failing after 3s
build-and-push / build (fitness-trainers) (push) Failing after 4s
build-and-push / build (gateway) (push) Failing after 3s
build-and-push / build (graphic-designers) (push) Failing after 3s
build-and-push / build (job-seekers) (push) Failing after 3s
build-and-push / build (jobs) (push) Failing after 2s
build-and-push / build (leads) (push) Failing after 2s
build-and-push / build (makeup-artists) (push) Failing after 2s
build-and-push / build (payments) (push) Failing after 2s
build-and-push / build (photographers) (push) Failing after 3s
build-and-push / build (social-media-managers) (push) Failing after 3s
build-and-push / build (tutors) (push) Failing after 3s
build-and-push / build (ugc-content-creators) (push) Failing after 2s
build-and-push / build (users) (push) Failing after 2s
build-and-push / build (video-editors) (push) Failing after 2s
build-and-push / build (companies) (push) Failing after 10m52s
build-and-push / build (catering-services) (push) Successful in 11m29s
Add build-images.yaml for Forgejo CI tmp build.yaml Add Dockerfiles for jobs and leads services Add build-all.sh script for batch building
28 lines
645 B
Docker
28 lines
645 B
Docker
FROM rust:alpine AS builder
|
|
|
|
WORKDIR /usr/src/app
|
|
|
|
RUN apk add --no-cache musl-dev pkgconfig openssl-dev openssl-libs-static && \
|
|
rustup target add x86_64-unknown-linux-musl
|
|
|
|
COPY Cargo.toml Cargo.lock ./
|
|
COPY crates ./crates
|
|
COPY apps ./apps
|
|
|
|
ENV RUSTFLAGS='-C target-feature=+crt-static'
|
|
ENV OPENSSL_STATIC=1
|
|
ENV OPENSSL_DIR=/usr
|
|
RUN cargo build --release --bin leads --target x86_64-unknown-linux-musl
|
|
|
|
FROM alpine:latest AS runtime
|
|
|
|
RUN apk add --no-cache ca-certificates
|
|
|
|
RUN adduser -D -u 1000 appuser
|
|
WORKDIR /app
|
|
|
|
COPY --from=builder /usr/src/app/target/x86_64-unknown-linux-musl/release/leads ./leads
|
|
|
|
USER appuser
|
|
|
|
CMD ["./leads"]
|