-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
31 lines (24 loc) · 951 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
#
# Builder Image
#
FROM docker.io/vaporio/foundation:bionic as builder
RUN apt-get update \
&& apt-get install -y --no-install-recommends ca-certificates
#
# Final Image
#
FROM scratch
LABEL org.label-schema.schema-version="1.0" \
org.label-schema.name="vaporio/sandbox-plugin" \
org.label-schema.vcs-url="https://github.com/vapor-ware/sandbox-plugin" \
org.label-schema.vendor="Vapor IO"
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
# Build the device configurations directly into the image. This is not
# generally advised, but is acceptable here since the plugin is merely
# an example for sandboxing and its config is not tied to anything real.
COPY config/device/devices.yml /etc/synse/plugin/config/device/devices.yml
COPY config/plugin/config.yml /etc/synse/plugin/config/config.yml
# Copy the executable.
COPY sandbox-plugin ./plugin
EXPOSE 5001
ENTRYPOINT ["./plugin"]