2023-10-06 19:06:04 +05:30
|
|
|
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
|
2023-10-01 19:59:31 +05:30
|
|
|
FROM python
|
|
|
|
|
|
|
|
LABEL org.opencontainers.image.source https://git.batsense.net/ForgeFlux/ap-test
|
|
|
|
|
|
|
|
RUN useradd -ms /bin/bash -u 1001 ap
|
|
|
|
RUN apt-get update && apt-get install -y ca-certificates git
|
|
|
|
WORKDIR /src/
|
|
|
|
COPY requirements.txt .
|
|
|
|
RUN pip install -r requirements.txt
|
2023-10-06 19:06:04 +05:30
|
|
|
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
|
2023-10-01 19:59:31 +05:30
|
|
|
|
|
|
|
USER ap
|
|
|
|
WORKDIR /home/ap
|
|
|
|
RUN mkdir app/
|
|
|
|
WORKDIR /home/ap/app/
|
|
|
|
COPY . .
|
|
|
|
CMD [ "behave"]
|