Spaces:
Running
Running
solara in production mode
Browse files- Dockerfile +16 -4
- README.md +8 -1
Dockerfile
CHANGED
@@ -1,5 +1,9 @@
|
|
1 |
FROM python:3.12
|
2 |
|
|
|
|
|
|
|
|
|
3 |
# Install git
|
4 |
RUN apt-get update && apt-get install -y git
|
5 |
|
@@ -16,18 +20,26 @@ WORKDIR /app
|
|
16 |
|
17 |
# Clone the private repo using the GitHub token
|
18 |
# We'll use build arguments and ARGs to pass the token
|
19 |
-
ARG GITHUB_TOKEN
|
20 |
ARG REPO_URL="github.com/Jhsmit/instagibbs.git"
|
21 |
|
22 |
-
|
23 |
-
|
|
|
|
|
|
|
|
|
|
|
24 |
|
25 |
# Install requirements
|
26 |
WORKDIR /app/instagibbs
|
|
|
|
|
|
|
|
|
27 |
RUN uv pip install -e .
|
28 |
|
29 |
# Switch to non-root user
|
30 |
USER user
|
31 |
|
32 |
# Run the app
|
33 |
-
CMD ["solara", "run", "instagibbs/web/app.py", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
1 |
FROM python:3.12
|
2 |
|
3 |
+
ARG CACHEBUSTER=3
|
4 |
+
RUN echo "Cache busting: ${CACHEBUSTER}"
|
5 |
+
|
6 |
+
|
7 |
# Install git
|
8 |
RUN apt-get update && apt-get install -y git
|
9 |
|
|
|
20 |
|
21 |
# Clone the private repo using the GitHub token
|
22 |
# We'll use build arguments and ARGs to pass the token
|
|
|
23 |
ARG REPO_URL="github.com/Jhsmit/instagibbs.git"
|
24 |
|
25 |
+
ARG CACHEBUSTER
|
26 |
+
# The secret 'github_token' must be provided during the build
|
27 |
+
RUN --mount=type=secret,id=GITHUB_TOKEN \
|
28 |
+
git clone https://$(cat /run/secrets/GITHUB_TOKEN)@${REPO_URL} instagibbs
|
29 |
+
|
30 |
+
# clone the datasets repo
|
31 |
+
RUN git clone https://github.com/Jhsmit/HDX-MS-datasets
|
32 |
|
33 |
# Install requirements
|
34 |
WORKDIR /app/instagibbs
|
35 |
+
|
36 |
+
ADD "https://www.random.org/cgi-bin/randbyte?nbytes=10&format=h" skipcache
|
37 |
+
RUN git pull
|
38 |
+
|
39 |
RUN uv pip install -e .
|
40 |
|
41 |
# Switch to non-root user
|
42 |
USER user
|
43 |
|
44 |
# Run the app
|
45 |
+
CMD ["solara", "run", "instagibbs/web/app.py", "--production", "--host", "0.0.0.0", "--port", "7860"]
|
README.md
CHANGED
@@ -9,4 +9,11 @@ license: mit
|
|
9 |
short_description: Runs instagibbs web interface
|
10 |
---
|
11 |
|
12 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
short_description: Runs instagibbs web interface
|
10 |
---
|
11 |
|
12 |
+
# InstaGibbs
|
13 |
+
|
14 |
+
The aim of instagibbs is to rapidly and easily obtain Linderstrøm-Lang ΔG and ΔΔG values from HDX-MS data both at the peptide and residue level.
|
15 |
+
|
16 |
+
The web interface pulls published HDX-MS datasets from a database and can be accessed and visualized directly as peptide, residue and protein structure representations.
|
17 |
+
|
18 |
+
|
19 |
+

|