-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
62 lines (37 loc) · 1.33 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
FROM node
# =====================================================================================
# Install OpenJDK-8
RUN apt-get update && \
apt-get install -y openjdk-8-jdk && \
apt-get install -y ant && \
apt-get clean;
# Fix certificate issues
RUN apt-get update && \
apt-get install ca-certificates-java && \
apt-get clean && \
update-ca-certificates -f;
# Setup JAVA_HOME -- useful for docker commandline
ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-amd64/
RUN export JAVA_HOME
#===================================================================================
RUN apt-get update && \
apt-get install -y golang-go;
#======================================================================================
RUN apt-get update && \
apt-get install -y rustc;
#======================================================================================
RUN apt-get update && \
apt-get install -y ruby;
#======================================================================================
RUN apt-get update && \
apt-get install -y elixir;
#======================================================================================
WORKDIR /usr/app
COPY package*.json ./
RUN npm install
RUN npm install pm2 -g
COPY . .
RUN npm run build
EXPOSE 4000
WORKDIR /usr/app/dist
CMD ["pm2-runtime","src/app.js"]