dockerfile and env var
Add Dockerfile, requirement.txt, and new BUMPER_CERTS env var.
This commit is contained in:
parent
3f44b33a0a
commit
d5db3b696c
3 changed files with 86 additions and 31 deletions
19
Dockerfile
Normal file
19
Dockerfile
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
FROM python:3.7-alpine as base
|
||||
|
||||
FROM base as builder
|
||||
|
||||
RUN mkdir /install
|
||||
WORKDIR /install
|
||||
|
||||
COPY requirements.txt /requirements.txt
|
||||
|
||||
RUN pip install --install-option="--prefix=/install" -r /requirements.txt
|
||||
|
||||
FROM base
|
||||
|
||||
COPY --from=builder /install /usr/local
|
||||
COPY . /bumper
|
||||
|
||||
WORKDIR /bumper
|
||||
|
||||
ENTRYPOINT ["python3", "-m", "bumper"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue