-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.mdl
38 lines (38 loc) · 3.41 KB
/
Dockerfile.mdl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# this file was generated by modelos
FROM python:3.10.4-slim
ENV PYTHONUNBUFFERED="1"
ENV PYTHONDONTWRITEBYTECODE="1"
ENV PIP_NO_CACHE_DIR="off"
ENV PIP_DISABLE_PIP_VERSION_CHECK="on"
ENV POETRY_NO_INTERACTION="1"
ENV PYTHONPATH="${PYTHONPATH}:/app:/app/"
RUN apt update && apt install -y watchdog git curl
RUN pip install poetry==1.2.0 && poetry --version
WORKDIR /app/
COPY ./poetry.lock ./pyproject.toml /app/
RUN poetry install --no-ansi --no-root
EXPOSE 8000
COPY ["tests/object/base/data_client.py", "tests/object/base/data_server.py", "tests/object/base/enumerated_client.py", "tests/object/base/enumerated_server.py", "tests/object/base/lotsofunions_client.py", "tests/object/base/lotsofunions_server.py", "tests/object/base/nested_client.py", "tests/object/base/nested_server.py", "tests/object/base/bar_client.py", "tests/object/base/bar_server.py", "tests/object/base/base_test.py", "tests/object/base/foo_client.py", "tests/object/base/foo_server.py", "/app/tests/object/base/"]
COPY [".gitignore", ".pylintrc", "Dockerfile.mdl", "LICENSE", "Makefile", "README.md", "poetry.lock", "pyproject.toml", "/app/"]
COPY ["docs/core_types.md", "/app/docs/"]
COPY ["modelos/__init__.py", "modelos/config.py", "modelos/local.py", "modelos/log.py", "modelos/scm.py", "/app/modelos/"]
COPY ["modelos/env/README.md", "modelos/env/__init__.py", "modelos/env/base.py", "/app/modelos/env/"]
COPY ["modelos/env/image/build.py", "/app/modelos/env/image/"]
COPY ["modelos/object/__init__.py", "modelos/object/base.py", "modelos/object/encoding.py", "modelos/object/kind.py", "modelos/object/opts.py", "/app/modelos/object/"]
COPY ["modelos/pkg/__init__.py", "modelos/pkg/base.py", "modelos/pkg/id.py", "modelos/pkg/info.py", "modelos/pkg/scheme.py", "modelos/pkg/util.py", "modelos/pkg/version.py", "/app/modelos/pkg/"]
COPY ["modelos/pkg/repo/__init__.py", "modelos/pkg/repo/base.py", "modelos/pkg/repo/gs.py", "modelos/pkg/repo/local.py", "modelos/pkg/repo/oci.py", "modelos/pkg/repo/remote.py", "modelos/pkg/repo/s3.py", "modelos/pkg/repo/util.py", "/app/modelos/pkg/repo/"]
COPY ["modelos/pkg/scheme/py.py", "/app/modelos/pkg/scheme/"]
COPY ["modelos/run/README.md", "modelos/run/client.py", "/app/modelos/run/"]
COPY ["modelos/run/kube/auth_util.py", "modelos/run/kube/env.py", "modelos/run/kube/pod_util.py", "modelos/run/kube/sync.py", "modelos/run/kube/uri.py", "/app/modelos/run/kube/"]
COPY ["modelos/util/decorate.py", "modelos/util/generic.py", "modelos/util/path.py", "modelos/util/rootpath.py", "/app/modelos/util/"]
COPY ["modelos/virtual/container/client.py", "modelos/virtual/container/file.py", "modelos/virtual/container/id.py", "modelos/virtual/container/registry.py", "/app/modelos/virtual/container/"]
COPY ["static/L_blue.svg", "/app/static/"]
COPY ["tests/repo_test.py", "tests/scm_test.py", "/app/tests/"]
COPY ["tests/env/image/build_test.py", "tests/env/image/file_test.py", "tests/env/image/id_test.py", "/app/tests/env/image/"]
COPY ["tests/object/encoding_test.py", "/app/tests/object/"]
COPY ["tests/object/base/nested/bar.py", "tests/object/base/nested/baz_client.py", "tests/object/base/nested/baz_server.py", "/app/tests/object/base/nested/"]
COPY ["tests/pkg/id_test.py", "tests/pkg/pkg_test.py", "/app/tests/pkg/"]
COPY ["tests/pkg/data/bar.csv", "tests/pkg/data/foo.yaml", "/app/tests/pkg/data/"]
COPY ["tests/pkg/data/nested/baz.txt", "/app/tests/pkg/data/nested/"]
COPY .git /app/.git/
CMD ["poetry", "run", "python", "-m", "tests.object.base.lotsofunions_server"]