Adding alpine's CA change to the satellite (#1744)

This commit is contained in:
Matt Robinson 2019-04-11 15:45:02 -04:00 committed by GitHub
parent 0eee46524d
commit 1f68ed535a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,6 +12,9 @@ COPY web/satellite/ /app
RUN npm install
RUN npm run build
FROM alpine as ca-cert
RUN apk -U add ca-certificates
# final stage
FROM alpine
ENV API_KEY= \
@ -23,7 +26,7 @@ EXPOSE 7777
EXPOSE 10100
WORKDIR /app
VOLUME /root/.local/share/storj/satellite
COPY resources/certs.pem /etc/ssl/certs/ca-certificates.crt
COPY --from=ca-cert /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
COPY --from=satellite-ui /app/ /app
COPY --from=build-env /app /app/satellite
COPY /cmd/satellite/entrypoint /entrypoint