-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
20 lines (18 loc) · 887 Bytes
/
Dockerfile
File metadata and controls
20 lines (18 loc) · 887 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
####################################################################################################
# base
####################################################################################################
FROM alpine:3.12.3 as base
RUN apk update && apk upgrade && \
apk add ca-certificates && \
apk --no-cache add tzdata
COPY dist/nats-source /bin/nats-source
RUN chmod +x /bin/nats-source
####################################################################################################
# nats-source
####################################################################################################
FROM scratch as nats-source
ARG ARCH
COPY --from=base /usr/share/zoneinfo /usr/share/zoneinfo
COPY --from=base /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
COPY --from=base /bin/nats-source /bin/nats-source
ENTRYPOINT [ "/bin/nats-source" ]