Skip to content

Commit

Permalink
Merge pull request #10 from LCOGT/docker-fix
Browse files Browse the repository at this point in the history
Fixes to make docker happy.
  • Loading branch information
cmccully authored Nov 13, 2024
2 parents 1c1c028 + 37fedaf commit d6afc7a
Show file tree
Hide file tree
Showing 2 changed files with 76 additions and 7 deletions.
75 changes: 75 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
# Compiled files
*.py[cod]
*.a
*.o
*.so
__pycache__
a.out
.cache
.pytest_cache
.eggs
*.fits
*.cat

# Ignore .c files by default to avoid including generated code. If you want to
# add a non-generated .c extension, use `git add -f filename.c`.
*.c

# Other generated files
*/version.py
*/cython_version.py
htmlcov
.coverage
MANIFEST
.ipynb_checkpoints
env

# Sphinx
docs/api
docs/_build

# Eclipse editor project files
.project
.pydevproject
.settings

# Pycharm editor project files
.idea

# Floobits project files
.floo
.flooignore

# Packages/installer info
*.egg
*.egg-info
dist
build
eggs
parts
bin
var
sdist
develop-eggs
.installed.cfg
distribute-*.tar.gz

# VS Code
.vscode

# Other
.cache
.tox
.*.sw[op]
*~
.project
.pydevproject
.settings

# Mac OSX
.DS_Store
.AppleDouble

*.xml

*.iml
8 changes: 1 addition & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
FROM python:3.10-slim-bullseye
FROM ghcr.io/lcogt/banzai-floyds:0.11.1

WORKDIR /banzai-floyds-ui

COPY ./pyproject.toml ./dependencies.lock ./

RUN pip install --no-cache -r dependencies.lock

RUN apt-get -y update && apt-get -y install git gcc && \
pip install --no-cache-dir "banzai_floyds@git+https://github.com/lcogt/banzai-floyds@output-dataproduct-frameid" && \
apt-get -y remove gcc && \
apt-get autoclean && \
rm -rf /var/lib/apt/lists/*

COPY . .

RUN pip install --no-cache-dir .
Expand Down

0 comments on commit d6afc7a

Please sign in to comment.