You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
456 B
26 lines
456 B
FROM alpine/git AS install |
|
|
|
RUN echo "unknow" > /git-version.txt |
|
|
|
# If the --dirty flag is left out, only the .git directory has to be copied |
|
COPY . /git/ |
|
|
|
RUN find . -type d -name .git -exec git describe --always --dirty > /git-version.txt \; |
|
|
|
|
|
FROM python:3.8 |
|
|
|
EXPOSE 8080 |
|
|
|
COPY test.sh / |
|
|
|
COPY OAS3.yml / |
|
|
|
COPY requirements.txt / |
|
RUN pip install -r requirements.txt |
|
|
|
COPY *.py / |
|
|
|
COPY --from=install /git-version.txt / |
|
|
|
CMD ["python", "-u", "./app.py"]
|
|
|