-
Notifications
You must be signed in to change notification settings - Fork 19
/
Dockerfile
38 lines (30 loc) · 1.03 KB
/
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
# To use this for local development:
# First build the image:
#
# $ docker build -t portal-ui:latest .
#
# Then start the container:
#
# $ docker run -p 8080:3000 -v $PWD:/export portal-ui
#
# Once running, one should be able to browse to http://localhost:8080
# If you invoked the "run" command inside the directory containing the code
# base, then modifications
# to the code will be visible/testable with a page refresh as the -v option maps
# the code base to the container's apache document root.
FROM ubuntu:16.04
MAINTAINER IGS IFX <[email protected]>
ARG DEBIAN_FRONTEND=noninteractive
# Install node 10.x and npm 6.4
RUN apt-get update && \
apt-get install -y curl git subversion && \
curl -sL https://deb.nodesource.com/setup_14.x | bash - && \
apt-get install -y nodejs
RUN mkdir /export
WORKDIR /export/portal-ui
# For a Docker-based production
#RUN mkdir /export && \
# cd /export && \
# svn co http://subversion.igs.umaryland.edu/svn/ENGR/portal/trunk/portal-ui
#
ENTRYPOINT [ "/export/portal-ui/entrypoint.sh" ]