17 lines
386 B
Docker
17 lines
386 B
Docker
|
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
|
||
|
|
||
|
USER web_host
|
||
|
WORKDIR /home/web_host
|
||
|
RUN mkdir app/
|
||
|
WORKDIR /home/web_host/app/
|
||
|
COPY . .
|
||
|
CMD [ "behave"]
|