entities_validation_svc/Dockerfile

27 lines
457 B
Text
Raw Permalink Normal View History

2020-11-06 22:41:07 +01:00
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 \;
2024-10-08 02:17:40 +02:00
FROM python:3.13
2020-11-06 22:41:07 +01:00
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"]