-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
42 lines (29 loc) · 941 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
# python 3
FROM ubuntu:focal
MAINTAINER K. Shankari ([email protected])
WORKDIR /usr/src/app
RUN apt-get update
RUN apt-get install -y curl
RUN apt-get install -y git
# install nano and vim for editing
RUN apt-get -y install nano vim
# cleanup
RUN apt-get -y remove --purge build-essential
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
ARG SERVER_REPO
ENV SERVER_REPO=${SERVER_REPO:-https://github.com/e-mission/e-mission-server.git}
ARG SERVER_BRANCH
ENV SERVER_BRANCH=${SERVER_BRANCH:-master}
ADD clone_server.sh /clone_server.sh
RUN chmod u+x /clone_server.sh
ADD index.html /index.html
# This clone puts the server code into the image, not the container
RUN bash -c "/clone_server.sh"
#declare environment variables
ENV DB_HOST=''
ENV WEB_SERVER_HOST=''
ENV LIVERELOAD_SRC=''
ADD start_script.sh /start_script.sh
RUN chmod u+x /start_script.sh
EXPOSE 8080
CMD ["/bin/bash", "/start_script.sh"]