forked from PelionIoT/devicedb
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
16 lines (14 loc) · 704 Bytes
/
Dockerfile
File metadata and controls
16 lines (14 loc) · 704 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
FROM golang
ADD . /go/src/github.com/armPelionEdge/devicedb
RUN cd src/github.com/armPelionEdge/devicedb && go install
# Use the ubuntu base image to install dependencies required by scripts inside of hack/
# Copy over binary built in first stage
FROM ubuntu:16.04
COPY --from=0 /go/bin/devicedb /usr/local/bin/devicedb
COPY --from=0 /go/src/github.com/armPelionEdge/devicedb/hack/client.ext /root/client.ext
COPY --from=0 /go/src/github.com/armPelionEdge/devicedb/hack/devicedb.conf.tpl.yaml /root/devicedb.conf.tpl.yaml
COPY --from=0 /go/src/github.com/armPelionEdge/devicedb/hack/*.sh /usr/local/bin/
# Install script dependencies
RUN apt update
RUN apt install -y openssl uuid gettext
WORKDIR /root