-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
43 lines (26 loc) · 936 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
31
32
33
34
35
36
37
38
39
40
41
42
43
FROM continuumio/miniconda3
LABEL author="Rodrigo Escobar Diaz Guerrero <[email protected]>"
# Install base utilities
RUN apt-get update \
&& apt-get install -y build-essential \
&& apt-get install -y wget \
&& apt-get install nginx -y --no-install-recommends \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
RUN rm /etc/nginx/sites-enabled/*
COPY ./nginx/nginx.conf /etc/nginx/sites-enabled/LEO.conf
ENV APP_HOME=/opt/app
RUN mkdir $APP_HOME
RUN mkdir $APP_HOME/staticfiles
RUN mkdir $APP_HOME/tempSessions
WORKDIR $APP_HOME
# Create the environment:
COPY environment.yml .
RUN conda env create -f environment.yml
# Make RUN commands use the new environment:
RUN echo "conda activate omeroScripts" >> ~/.bashrc
SHELL ["/bin/bash", "-c"]
COPY ./ ./
CMD mv ./entrypoint.sh /ls
EXPOSE 5000
ENTRYPOINT ["/bin/bash", "/opt/app/entrypoint.sh"]