-
Notifications
You must be signed in to change notification settings - Fork 44
/
Dockerfile
25 lines (24 loc) · 863 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
# stage 1
FROM golang:alpine
MAINTAINER Raghavendra Balgi;[email protected]
COPY . /home/isosim/app/isosim
WORKDIR /home/isosim/app/isosim/cmd/isosim
RUN go build -v -o app .
# stage 2
FROM alpine
#USER 1001:1001
ADD web /etc/isosim/web
ADD test/testdata/specs /etc/isosim/specs
ADD test/testdata/appdata /etc/isosim/data
ADD test/testdata/certs /etc/isosim/certs
ENV HTTP_PORT 8080
ENV LOG_LEVEL DEBUG
ENV TLS_ENABLED=false
ENV TLS_CERT_FILE=/etc/isosim/certs/cert.pem
ENV TLS_KEY_FILE=/etc/isosim/certs/key.pem
COPY --from=0 /home/isosim/app/isosim/cmd/isosim/app /usr/apps/isosim
ENTRYPOINT /usr/apps/isosim --http-port $HTTP_PORT \
--log-level $LOG_LEVEL \
--html-dir /etc/isosim/web \
--data-dir /etc/isosim/data \
--specs-dir /etc/isosim/specs