Skip to content

Commit b64892f

Browse files
committed
Add Dockerfile
1 parent 810916f commit b64892f

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

Dockerfile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
FROM mambaorg/micromamba:1.4-bullseye-slim
2+
3+
USER root
4+
RUN apt update && apt install -y gcc python3-dev \
5+
&& rm -rf /var/lib/apt/lists/*
6+
USER $MAMBA_USER
7+
8+
COPY --chown=$MAMBA_USER:$MAMBA_USER environment.yaml /tmp/env.yaml
9+
# TODO: avoid installing development dependencies
10+
RUN micromamba env create --yes -f /tmp/env.yaml && \
11+
micromamba clean --all --yes
12+
13+
EXPOSE 8501
14+
15+
COPY . /app
16+
WORKDIR /app
17+
18+
HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
19+
20+
ENTRYPOINT ["/opt/conda/envs/llllm-env/bin/streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]

0 commit comments

Comments
 (0)