Spaces:
Runtime error
Runtime error
File size: 543 Bytes
9750088 be85566 b210733 be85566 9750088 be85566 9750088 be85566 9750088 be85566 9750088 be85566 cf10c5a be85566 873f15f | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | # Build stage
FROM docker.io/library/golang:alpine AS builder
RUN apk update --no-cache && apk add --no-cache tzdata git
WORKDIR /build
RUN git clone --depth 1 --branch main https://github.com/karust/openserp.git .
RUN go build -o /app/openserp .
# Final stage
FROM docker.io/zenika/alpine-chrome:with-chromedriver
ENV PYTHONUNBUFFERED=1 \
HF_PORT=7860
WORKDIR /app
COPY --from=builder /app/openserp /app/openserp
COPY config.yaml /app/config.yaml
EXPOSE 7860
ENTRYPOINT ["/app/openserp", "serve", "-a", "0.0.0.0", "-p", "7860"] |