openserp-api / Dockerfile
samuelolubukun's picture
Upload 3 files
873f15f verified
raw
history blame contribute delete
543 Bytes
# 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"]