forked from nimbusec-oss/api-frontend-example
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
34 lines (23 loc) · 643 Bytes
/
Dockerfile
File metadata and controls
34 lines (23 loc) · 643 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
33
34
# --- BUILD GO
FROM golang:1.10
WORKDIR /go/src/github.com/nimbusec-oss/api-frontend-example/
COPY . .
RUN go get && go install
# --- BUILD WEB
FROM node:9
WORKDIR /home/node
COPY client/ client/
COPY public/ public/
RUN npm install -g sass
RUN cd client && npm install
RUN cd client && ./node_modules/.bin/grunt
# --- START WEBSERVER
FROM node:9
ENV NIMBUSEC_KEY=abc
ENV NIMBUSEC_SECRET=abc
ENV NIMBUSEC_URL=https://api.nimbusec.com
ENV NIMBUSEC_REPORT_LOGO=/static/img/nimbusec-logo.png
EXPOSE 3000
COPY --from=0 /go/bin/api-frontend-example api-frontend-example
COPY --from=1 /home/node/public/ public/
CMD ./api-frontend-example