forked from BU-ISCIII/iskylims
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
30 lines (23 loc) · 770 Bytes
/
Dockerfile
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
FROM ubuntu:22.04
ENV TZ=Europe/Madrid
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
# Updates
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get upgrade -y
# Essential software
RUN apt-get install -y \
git wget lsb-core lsb-release \
libmysqlclient-dev \
python3-pip libpq-dev \
python3-wheel apache2-dev \
gnuplot
RUN git clone https://github.com/bu-isciii/iskylims.git /srv/iskylims
WORKDIR /srv/iskylims
RUN git checkout develop
RUN pip install -r conf/requirements.txt
RUN bash install.sh --install app --dev --conf conf/docker_install_settings.txt --docker
WORKDIR /opt/iskylims
# Expose
EXPOSE 8001
# Start the application
CMD ["python3", "/opt/iskylims/manage.py", "runserver", "0:8001"]