-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
40 lines (31 loc) · 902 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
FROM debian:stretch-slim
RUN apt-get update -qq && \
apt-get install -qq -y build-essential gnupg curl wget && \
\
apt-get install -qq -y libpng-dev && \
wget -q -O /tmp/libpng12.deb http://mirrors.kernel.org/ubuntu/pool/main/libp/libpng/libpng12-0_1.2.54-1ubuntu1_amd64.deb && \
dpkg -i /tmp/libpng12.deb && \
\
mkdir -p /usr/share/man/man1 && \
apt-get install -qq -y default-jdk && \
\
curl -sL https://deb.nodesource.com/setup_6.x | bash - && \
apt-get install -qq -y nodejs
WORKDIR /app
COPY package.json .
COPY package-lock.json .
RUN npm install
COPY src src
COPY src-kotlin src-kotlin
COPY test test
COPY server server
COPY webpack webpack
COPY webpack.*.js ./
COPY ts*.json ./
COPY typing.d.ts .
RUN npm run lint
RUN npm run build
FROM nginx:1.13-alpine
WORKDIR /app
COPY --from=0 /app/dist .
COPY nginx.conf /etc/nginx/conf.d/default.conf