bitrix/Dockerfile
Pasha 8fe39c5329
Some checks failed
Deploy / CreateImage (push) Successful in 3m11s
Deploy / DeployService (push) Failing after 26s
-
2025-10-13 16:40:58 +03:00

21 lines
543 B
Docker

FROM docker.io/golang:1.23.8-alpine as build
WORKDIR /app
ARG GITEA_IP=10.7.0.2
RUN echo "$GITEA_IP gitea.pena" >> /etc/hosts
ADD pena-ca.crt /usr/local/share/ca-certificates/cacert.crt
RUN apk add git && update-ca-certificates
COPY . .
RUN go mod download
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o bitix ./cmd/main.go
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o validator ./cmd/validator/main.go
FROM alpine:latest
COPY --from=build /app/bitix .
COPY --from=build /app/validator .
RUN apk add tzdata
CMD ["/bitix"]