-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
25 lines (16 loc) · 912 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
FROM nasajplmemex/sce-domain-discovery:latest
RUN echo 'hello'
FROM ubuntu:bionic
WORKDIR /usr/src/app
RUN apt update && apt-get install -y python3 python3-dev python3-pip docker.io apache2 libapache2-mod-wsgi-py3 curl && curl -sL https://deb.nodesource.com/setup_10.x | bash - && apt update && apt install -y nodejs
COPY package*.json ./
COPY scripts/run.sh /
RUN npm ci --only=production
COPY . .
RUN npm run build && apt update && chmod +x /run.sh && a2enmod proxy && a2enmod proxy_http && mkdir /var/www/html/explorer && cp -rf build/* /var/www/html/explorer/
COPY scripts/000-default.conf /etc/apache2/sites-available/
EXPOSE 8080
EXPOSE 80
COPY --from=0 /projects/sce-domain-discovery /sce
RUN cd /sce/webui && pip3 install -r requirements.txt && mkdir /images && mkdir /models && chown www-data:www-data /images && chown www-data:www-data /models && gpasswd -a www-data docker
CMD [ "/run.sh" ]