host-meta-test/Dockerfile
Aravinth Manivannan 500c0b5e4f
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
fix: build ftest_common from source till it is uploaded to PyPi
2023-10-02 17:52:22 +05:30

24 lines
670 B
Docker

FROM python as builder
WORKDIR /src/
RUN git clone https://git.batsense.net/ForgeFlux/ftest-common-py .
RUN pip install -r requirements.txt
RUN python3 -m build
FROM python
LABEL org.opencontainers.image.source https://git.batsense.net/ForgeFlux/web-host-test
RUN useradd -ms /bin/bash -u 1001 web_host
RUN apt-get update && apt-get install -y ca-certificates git
WORKDIR /src/
COPY requirements.txt .
RUN pip install -r requirements.txt
COPY --from=builder /src/dist/ftest_common-0.0.1-py3-none-any.whl .
RUN pip install ./ftest_common-0.0.1-py3-none-any.whl
USER web_host
WORKDIR /home/web_host
RUN mkdir app/
WORKDIR /home/web_host/app/
COPY . .
CMD [ "behave"]