Skip to content

Commit 59c25f5

Browse files
committed
Adding Dockerfile
1 parent c874b60 commit 59c25f5

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

Dockerfile

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
#Dockerfile for ethoscope_metadata_server
2+
FROM python:3.8
3+
LABEL maintainer="Giorgio Gilestro <giorgio@gilest.ro>"
4+
5+
# pre-requisites
6+
RUN apt-get update && \
7+
apt-get install -y --no-install-recommends fonts-dejavu nano git gfortran file gcc cmake libcurl4-openssl-dev && \
8+
apt-get clean && \
9+
rm -rf /var/lib/apt/lists/*
10+
11+
#install ethoscopy
12+
#https://github.com/gilestrolab/ethoscopy
13+
#RUN pip3 install ethoscopy
14+
RUN pip install bottle pandas
15+
16+
WORKDIR /opt
17+
RUN git clone https://github.com/gilestrolab/ethoscope_metadata_server.git
18+
19+
WORKDIR /opt/ethoscope_metadata_server
20+
CMD ["python", "/opt/ethoscope_metadata_server/metadata_db_server.py", "--refresh", "--metadata", "/opt/ethoscope_metadata"]
21+
22+
23+
# sudo docker run -d -p 8081:8081 \
24+
# --name ethoscope-metadata-server \
25+
# --volume /mnt/data/results:/mnt/ethoscope_results:ro \
26+
# --volume /mnt/data/ethoscope_metadata:/opt/ethoscope_metadata \
27+
# --restart=unless-stopped \
28+
# -e VIRTUAL_HOST="metadata.lab.gilest.ro" \
29+
# -e VIRTUAL_PORT="8081" \
30+
# -e LETSENCRYPT_HOST="metadata.lab.gilest.ro" \
31+
# -e LETSENCRYPT_EMAIL="giorgio@gilest.ro" \
32+
# ethoscope_metadata_server-lab.gilest.ro

0 commit comments

Comments
 (0)