-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (20 loc) · 806 Bytes
/
Dockerfile
File metadata and controls
32 lines (20 loc) · 806 Bytes
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
FROM ubuntu:16.04
# Environment variables
ENV NODE_JS_VERSION=8
RUN apt-get update && apt-get install -y curl apt-transport-https build-essential \
&& curl -sL https://deb.nodesource.com/setup_${NODE_JS_VERSION}.x | bash - \
&& apt-get install -y nodejs openjdk-8-jdk maven \
&& curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
&& echo "deb https://dl.yarnpkg.com/debian/ stable main" \
| tee /etc/apt/sources.list.d/yarn.list \
&& apt-get update && apt-get install -y yarn
RUN yarn global add http-server
EXPOSE 3000 8080
WORKDIR /opt/nasa-path-finder
COPY package.json /opt/nasa-path-finder/package.json
COPY yarn.lock /opt/nasa-path-finder/yarn.lock
COPY . /opt/nasa-path-finder
RUN yarn
RUN yarn build
RUN yarn compile
CMD yarn start:web & yarn start:server