From 7b9e648cfb476f28419f32fbf1ba8053a36a5bdf Mon Sep 17 00:00:00 2001 From: edwinnglabs Date: Mon, 11 Mar 2024 21:55:46 -0700 Subject: [PATCH] Dockerfile to create image ready for quick fit and forecast fixes #857 --- .github/workflows/black.yaml | 2 +- .github/workflows/post-merge-build.yaml | 36 ------------------------- Dockerfile | 12 +++++++++ 3 files changed, 13 insertions(+), 37 deletions(-) delete mode 100644 .github/workflows/post-merge-build.yaml create mode 100644 Dockerfile diff --git a/.github/workflows/black.yaml b/.github/workflows/black.yaml index 26fa6703..58f420e7 100644 --- a/.github/workflows/black.yaml +++ b/.github/workflows/black.yaml @@ -1,4 +1,4 @@ -name: lint +name: Lint on: [push] diff --git a/.github/workflows/post-merge-build.yaml b/.github/workflows/post-merge-build.yaml deleted file mode 100644 index 0f7f48b8..00000000 --- a/.github/workflows/post-merge-build.yaml +++ /dev/null @@ -1,36 +0,0 @@ -# name: post-merge-build - -# on: -# push: -# branches: -# - master -# - dev - -# jobs: -# build: -# runs-on: ${{ matrix.os }} -# strategy: -# # You can use PyPy versions in python-version. -# # For example, pypy2 and pypy3 -# matrix: -# python-version: [3.6, 3.7] -# os: [macos-latest, windows-latest] - -# steps: -# - uses: actions/checkout@v2 -# - name: Set up Python ${{ matrix.python-version }} -# uses: actions/setup-python@v2 -# with: -# python-version: ${{ matrix.python-version }} -# # You can test your matrix by printing the current Python version -# - name: Display Python version -# run: python -c "import sys; print(sys.version)" -# - name: Install dependencies -# run: | -# pip install -U pip -# pip install -U setuptools -# pip install -r requirements.txt -# pip install -r requirements-test.txt -# python setup.py develop -# - name: Test with pytest -# run: pytest -vs tests/ --cov orbit/ diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..4648a5e3 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,12 @@ +FROM python:3.9 + +RUN pip install --upgrade pip +RUN pip install -U setuptools + +WORKDIR /orbit +COPY . . + +RUN python -m pip install --no-cache-dir -r requirements.txt +RUN python -m pip install --no-cache-dir -r requirements-test.txt + +RUN python -m pip install -e . -v \ No newline at end of file