-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
48 lines (38 loc) · 1.26 KB
/
Copy pathDockerfile
File metadata and controls
48 lines (38 loc) · 1.26 KB
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
39
40
41
42
43
44
45
46
47
48
# TAS-AI Docker Image
#
# Build:
# docker build -t tasai .
#
# Run dashboard:
# docker run -p 8050:8050 tasai tasai-dashboard --host 0.0.0.0
#
# Run example:
# docker run tasai python -m tasai.examples.example_parameter_determination
#
# Interactive shell:
# docker run -it tasai bash
FROM mambaorg/micromamba:1.5-jammy
# Set working directory
WORKDIR /app
# Copy the entire application
COPY --chown=$MAMBA_USER:$MAMBA_USER . /app/
# Install git for development
USER root
RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
USER $MAMBA_USER
# Create environment and install package
RUN micromamba create -n tasai -f environment.yml -y && \
micromamba clean --all --yes && \
micromamba run -n tasai pip install -e . --no-deps
# PySpinW bundle is optional; skip if not available in the archive.
# COPY --chown=$MAMBA_USER:$MAMBA_USER pyspinw_pkg/ /app/pyspinw_pkg/
# RUN micromamba run -n tasai pip install /app/pyspinw_pkg/ --no-deps
RUN echo "Building analytical-only image. PySpinW skipped."
# Set the default environment
ENV ENV_NAME=tasai
# Expose dashboard port
EXPOSE 8050
# Use micromamba run as entrypoint
ENTRYPOINT ["micromamba", "run", "-n", "tasai"]
# Default command
CMD ["python", "-c", "import tasai; print('TAS-AI ready!')"]