updat epush

This commit is contained in:
Karim Pirzargar
2026-03-09 20:16:14 +03:30
parent d5a96a7cf7
commit 2ab001bc70
4 changed files with 110 additions and 76 deletions
+20 -17
View File
@@ -1,22 +1,25 @@
ARG GO_VERSION=1.23
ARG BASH_VERSION=5.0
FROM golang:${GO_VERSION} AS go-builder
FROM docker-mirror.ravanertebat.ir/base/amd64/bash:$BASH_VERSION
WORKDIR /app
## all below action added to base image @Dockerfile.bash-base
# #ADD ./fastest-mirror.sh /etc/apk/
# #RUN chmod +x /etc/apk/fastest-mirror.sh \
# # && /etc/apk/fastest-mirror.sh
# RUN apk update
# # RUN apk add --upgrade busybox-suid
# RUN apk --no-cache add --update busybox-suid \
# && apk --no-cache add curl rsync tzdata tcpdump tree ca-certificates s-nail \
# && ln -s /usr/bin/mail /usr/bin/s-nail \
# && mkdir -p /go/bin/media \
# && mkdir -p /go/bin/log \
# && mkdir -p /go/bin/config
WORKDIR /go/bin/
COPY . .
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -v -o scraper-build ./cmd/scraper/main.go
FROM bash:${BASH_VERSION}
RUN apk --no-cache add busybox-suid curl rsync tzdata tcpdump tree ca-certificates s-nail \
&& ln -s /usr/bin/mail /usr/bin/s-nail
WORKDIR /app
COPY --from=go-builder /app/scraper-build .
EXPOSE 80
ENTRYPOINT /app/scraper-build
## Copy pre-built artifacts from Drone CI build steps
COPY ./artifacts/go/bin/scraper .
# COPY ./artifacts/go/config/*.json ./config/
EXPOSE 8686
# Set the binary.
ENTRYPOINT ["/go/bin/scraper"]
+22 -16
View File
@@ -1,24 +1,30 @@
ARG GO_VERSION=1.23
ARG BASH_VERSION=5.0
FROM golang:${GO_VERSION} AS go-builder
FROM docker-mirror.ravanertebat.ir/base/amd64/bash:$BASH_VERSION
WORKDIR /app
## all below action added to base image @Dockerfile.bash-base
# #ADD ./fastest-mirror.sh /etc/apk/
# #RUN chmod +x /etc/apk/fastest-mirror.sh \
# # && /etc/apk/fastest-mirror.sh
# RUN apk update
# # RUN apk add --upgrade busybox-suid
# RUN apk --no-cache add --update busybox-suid \
# && apk --no-cache add curl rsync tzdata tcpdump tree ca-certificates s-nail \
# && ln -s /usr/bin/mail /usr/bin/s-nail \
# && mkdir -p /go/bin/media \
# && mkdir -p /go/bin/log \
# && mkdir -p /go/bin/config
WORKDIR /go/bin/
COPY . .
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -v -o web-build ./cmd/web/main.go
## Copy pre-built artifacts from Drone CI build steps
COPY ./artifacts/go/bin/web .
COPY ./cmd/web/assets ./assets
COPY ./app/cmd/web/docs ./docs
# COPY ./artifacts/go/config/*.json ./config/
EXPOSE 8686
# Set the binary.
ENTRYPOINT ["/go/bin/web"]
FROM bash:${BASH_VERSION}
RUN apk --no-cache add busybox-suid curl rsync tzdata tcpdump tree ca-certificates s-nail \
&& ln -s /usr/bin/mail /usr/bin/s-nail
WORKDIR /app
COPY --from=go-builder /app/web-build .
COPY --from=go-builder /app/cmd/web/assets ./assets
COPY --from=go-builder /app/cmd/web/docs ./docs
EXPOSE 80
ENTRYPOINT /app/web-build
+19 -14
View File
@@ -1,22 +1,27 @@
ARG GO_VERSION=1.23
ARG BASH_VERSION=5.0
FROM golang:${GO_VERSION} AS go-builder
FROM docker-mirror.ravanertebat.ir/base/amd64/bash:$BASH_VERSION
WORKDIR /app
## all below action added to base image @Dockerfile.bash-base
# #ADD ./fastest-mirror.sh /etc/apk/
# #RUN chmod +x /etc/apk/fastest-mirror.sh \
# # && /etc/apk/fastest-mirror.sh
# RUN apk update
# # RUN apk add --upgrade busybox-suid
# RUN apk --no-cache add --update busybox-suid \
# && apk --no-cache add curl rsync tzdata tcpdump tree ca-certificates s-nail \
# && ln -s /usr/bin/mail /usr/bin/s-nail \
# && mkdir -p /go/bin/media \
# && mkdir -p /go/bin/log \
# && mkdir -p /go/bin/config
WORKDIR /go/bin/
COPY . .
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -v -o worker-build ./cmd/worker/main.go
## Copy pre-built artifacts from Drone CI build steps
COPY ./artifacts/go/bin/worker .
EXPOSE 8686
# Set the binary.
ENTRYPOINT ["/go/bin/worker"]
FROM bash:${BASH_VERSION}
RUN apk --no-cache add busybox-suid curl rsync tzdata tcpdump tree ca-certificates s-nail \
&& ln -s /usr/bin/mail /usr/bin/s-nail
WORKDIR /app
COPY --from=go-builder /app/worker-build .
EXPOSE 80
ENTRYPOINT /app/worker-build